Files
linux/drivers/usb/host
Julia Lawall 6a1d0b0af0 drivers/usb/host/ehci-fsl.c: add missing iounmap
commit 2492c6e645 upstream.

Add missing iounmap in error handling code, in a case where the function
already preforms iounmap on some other execution path.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
expression e;
statement S,S1;
int ret;
@@
e = \(ioremap\|ioremap_nocache\)(...)
... when != iounmap(e)
if (<+...e...+>) S
... when any
    when != iounmap(e)
*if (...)
   { ... when != iounmap(e)
     return ...; }
... when any
iounmap(e);
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-02-03 09:19:01 -08:00
..
2011-11-11 09:36:36 -08:00
2011-03-31 11:26:23 -03:00
2011-11-11 09:35:45 -08:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-11-11 09:35:35 -08:00
2009-06-16 14:17:32 +10:00
2010-11-01 17:01:27 -04:00
2010-08-10 14:35:44 -07:00
2011-04-13 16:36:06 -07:00
2011-11-11 09:36:44 -08:00
2012-01-12 11:35:33 -08:00
2012-01-12 11:35:28 -08:00