]> git.baikalelectronics.ru Git - kernel.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)
commit57a146bdca96d200cb403c0495bb8ed77a087ac5
tree51f6c0294f6d52465827058413dd0e2aaf66e63e
parent342b3eeed052d4e9d761e449b30a14d79da8d0fb
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