]> git.karo-electronics.de Git - linux-beck.git/commit
staging: csr: fix possible memory leak in do_patch_convert_download()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 3 Sep 2012 10:15:26 +0000 (18:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Sep 2012 21:14:07 +0000 (14:14 -0700)
commitc8be681fad93aac2121efcd1bcff54ffe53403eb
treec6f79598674d46d6c8b345979ad93f267cd59e28
parent37905ae131a728d90515bb9258f195edb6c5d5a2
staging: csr: fix possible memory leak in do_patch_convert_download()

pfw has been allocated in function xbv_to_patch() and should be
freed before leaving from the error handling cases.

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/csr/csr_wifi_hip_download.c