rtc: mxc: fix memory leak
Free pdata before exit. Found by cppcheck. [yuasa@linux-mips.org: add missing iounmap()] Signed-off-by: NAlexander Beregalov <a.beregalov@gmail.com> Reviewed-by: NWANG Cong <xiyou.wangcong@gmail.com> Acked-by: NDaniel Mack <daniel@caiaq.de> Acked-by: NAlessandro Zummo <a.zummo@towertech.it> Cc Yoichi Yuasa <yuasa@linux-mips.org> Cc: Paul Gortmaker <p_gortmaker@yahoo.com> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
Showing
想要评论请 注册 或 登录