Julia Lawall 60daac4a90 drivers/watchdog/lantiq_wdt.c: drop iounmap for devm_ allocated data
Data allocated with devm_ioremap or devm_ioremap_nocache should not be
freed using iounmap, because doing so causes a dangling pointer, and a
subsequent double free.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r@
expression x;
@@
(
 x = devm_ioremap(...)
|
 x = devm_ioremap_nocache(...)
)

@@
expression r.x;
@@
* iounmap(x)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
2012-01-06 15:27:30 +01:00
..
2011-03-31 11:26:23 -03:00
2011-06-28 07:43:00 +00:00
2011-11-15 11:45:16 +01:00
2011-03-15 16:02:27 +00:00
2011-11-15 11:45:16 +01:00
2011-11-05 21:16:15 +01:00
2011-07-26 16:49:47 -07:00
2011-03-15 16:02:27 +00:00
2011-09-27 18:08:04 +02:00
2011-03-15 16:02:27 +00:00
2011-11-05 21:16:15 +01:00
2011-11-05 21:16:15 +01:00
2011-03-15 16:02:18 +00:00