]> Git Repo - linux.git/commit
drivers/rtc/rtc-mrst.c: use release_mem_region after request_mem_region
authorJulia Lawall <[email protected]>
Thu, 26 May 2011 23:25:08 +0000 (16:25 -0700)
committerLinus Torvalds <[email protected]>
Fri, 27 May 2011 00:12:33 +0000 (17:12 -0700)
commitc258f9a0aab09366070f3c9283070edead23d4cf
treec56ccd5534ab88e8e4cfc6c798a50ec20b5f32ea
parent74d34d4be60928c3504fdad9d67707a6e3244a80
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]>
drivers/rtc/rtc-mrst.c
This page took 0.059714 seconds and 4 git commands to generate.