git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89078d5
)
watchdog: s3c2410_wdt.c: Convert release_resource to release_region/release_mem_region
author
Julia Lawall
<julia@diku.dk>
Sat, 26 Feb 2011 16:34:38 +0000
(17:34 +0100)
committer
Wim Van Sebroeck
<wim@iguana.be>
Tue, 29 Mar 2011 11:05:28 +0000
(11:05 +0000)
Request_mem_region should be used with release_mem_region, not
release_resource.
The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
expression x,E;
@@
*x = request_mem_region(...)
... when != release_mem_region(x)
when != x = E
* release_resource(x);
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Cc: stable <stable@kernel.org>
drivers/watchdog/s3c2410_wdt.c
patch
|
blob
|
history
diff --cc
drivers/watchdog/s3c2410_wdt.c
Simple merge