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-03-15 16:02:27 +00:00
2011-03-15 16:02:22 +00:00
2012-01-06 15:17:25 +01:00
2011-06-28 20:01:25 +00:00
2011-07-26 21:22:15 +00:00
2011-07-26 21:22:15 +00:00
2011-01-12 13:51:29 +00:00
2011-08-08 14:29:32 -04:00
2012-01-06 15:17:25 +01:00
2011-03-15 16:02:27 +00:00
2011-03-15 16:02:39 +00:00
2011-12-26 15:14:24 +01:00
2012-01-06 15:17:17 +01:00
2012-01-06 15:17:25 +01:00
2012-01-06 15:17:25 +01:00
2012-01-06 15:17:25 +01:00
2012-01-06 15:17:17 +01:00
2011-01-12 10:23:04 +00:00
2011-06-28 07:43:00 +00:00
2011-12-26 15:14:38 +01:00
2011-03-15 16:02:22 +00:00
2012-01-06 15:17:17 +01:00
2011-07-26 21:19:16 +00:00
2012-01-06 15:17:17 +01:00
2011-07-26 16:49:47 -07:00
2011-03-15 16:02:06 +00:00
2012-01-06 15:17:17 +01:00
2011-07-22 08:55:23 +00:00
2011-07-26 21:28:23 +00:00
2011-12-27 20:35:59 +01:00
2012-01-06 15:17:17 +01:00
2012-01-06 15:17:17 +01:00
2012-01-06 15:17:25 +01:00
2011-11-15 11:45:16 +01:00
2012-01-06 15:17:17 +01:00
2012-01-06 15:27:30 +01:00
2011-02-08 15:07:45 +10:00
2011-03-15 16:02:27 +00:00
2011-11-15 11:45:16 +01:00
2012-01-06 15:17:25 +01:00
2011-05-18 12:32:23 -06:00
2011-11-05 21:16:15 +01:00
2012-01-06 15:17:25 +01:00
2012-01-06 15:17:25 +01:00
2011-08-02 08:22:54 +00:00
2011-01-12 13:51:23 +00:00
2011-11-05 21:15:38 +01:00
2012-01-06 15:17:25 +01:00
2012-01-06 15:17:25 +01:00
2011-03-15 16:02:27 +00:00
2012-01-06 15:17:25 +01:00
2011-07-22 08:56:41 +00:00
2011-03-15 16:02:22 +00:00
2012-01-06 15:17:25 +01:00
2012-01-06 15:17:25 +01:00
2012-01-06 15:17:25 +01:00
2012-01-06 15:17:25 +01:00
2012-01-06 15:22:04 +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-20 14:32:00 +02:00
2011-03-15 16:02:27 +00:00
2011-11-05 21:15:10 +01:00
2011-07-26 21:21:16 +00:00
2011-08-02 08:22:49 +00:00
2011-09-27 18:08:04 +02:00
2011-03-29 11:56:22 +00:00
2011-12-26 15:14:31 +01:00
2011-03-29 11:05:57 +00:00
2011-01-12 13:51:16 +00:00
2012-01-06 15:17:25 +01:00
2012-01-06 15:17:25 +01:00
2012-01-06 15:17:25 +01:00
2011-11-05 21:16:39 +01:00
2011-03-15 16:02:27 +00:00
2011-07-28 08:01:18 +00:00
2011-09-20 14:22:28 +02:00
2011-07-28 08:01:04 +00: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
2012-01-06 15:24:00 +01:00
2012-01-06 15:16:18 +01:00
2011-03-15 16:02:18 +00:00