diff options
| author | Julia Lawall <[email protected]> | 2011-05-26 23:25:08 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2011-05-27 00:12:33 +0000 |
| commit | c258f9a0aab09366070f3c9283070edead23d4cf (patch) | |
| tree | c56ccd5534ab88e8e4cfc6c798a50ec20b5f32ea /Documentation/filesystems/configfs/configfs_example_macros.c | |
| parent | rtc: add basic support for ST M41T93 SPI RTC (diff) | |
| download | kernel-c258f9a0aab09366070f3c9283070edead23d4cf.tar.gz kernel-c258f9a0aab09366070f3c9283070edead23d4cf.zip | |
drivers/rtc/rtc-mrst.c: use release_mem_region after request_mem_region
The memory allocated using request_mem_region should be released using
release_mem_region, not release_region.
The semantic patch that fixes part of this problem is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
expression E1,E2,E3;
@@
request_mem_region(E1,E2,E3)
...
?- release_region(E1,E2)
+ release_mem_region(E1,E2)
// </smpl>
[[email protected]: use resource_size()]
Signed-off-by: Julia Lawall <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'Documentation/filesystems/configfs/configfs_example_macros.c')
0 files changed, 0 insertions, 0 deletions
