]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
logfs: fix possible memory leak in logfs_mtd_can_write_buf()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sun, 2 Sep 2012 14:19:06 +0000 (22:19 +0800)
committerPrasad Joshi <prasadjoshi.linux@gmail.com>
Mon, 3 Sep 2012 03:50:47 +0000 (09:20 +0530)
commitab2ec19f42dc084880ba9b77e1c153adc1e9c439
treec7b2c6a70de3383b421758518b86ed098b8d4eea
parent5b716ac728bcc01b1f2a7ed6e437196602237c27
logfs: fix possible memory leak in logfs_mtd_can_write_buf()

buf has been allocated in this function and should be
freed before leaving from the error handling case.

spatch with a semantic match is used to found this problem.
(http://coccinelle.lip6.fr/)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Prasad Joshi <prasadjoshi.linux@gmail.com>
fs/logfs/dev_mtd.c