]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
qeth: fix possible memory leak in qeth_l3_add_[vipa|rxip]()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 24 Sep 2012 04:24:25 +0000 (04:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Sep 2012 19:45:17 +0000 (15:45 -0400)
commitf68bd07c41f93a4291d3605d5b5ac254340c439e
tree51f6c0294f6d52465827058413dd0e2aaf66e63e
parent3c7874758743a857cadbb9eaf42825d75370dacd
qeth: fix possible memory leak in qeth_l3_add_[vipa|rxip]()

ipaddr has been allocated in function qeth_l3_add_vipa() but
does not free before leaving from the error handling cases. The
same problem also exists in function qeth_l3_add_rxip().

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: Frank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_l3_main.c