Tag: c258f9a0aab09366070f3c9283070edead23d4cf

drivers/rtc/rtc-mrst.c: use release_mem_region after request_mem_region

Author: Julia Lawall <julia@diku.dk> 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/) // @@ expression E1,E2,E3; @@ request_mem_region(E1,E2,E3) … ?- release_region(E1,E2) + release_mem_region(E1,E2) // [akpm@linux-foundation.org: use resource_size()] Signed-off-by: Julia Lawall Cc: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus …

Continue reading