mISDN: fix possible memory leak in hfcmulti_init()
commit9fef76857feed8e94ca3a5ee37db644f04a9488b
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 3 Sep 2012 07:31:00 +0000 (3 15:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Sep 2012 19:37:29 +0000 (3 15:37 -0400)
tree0b2e278ce7291cde1301fdb4d339ed0dc793f691
parentb379135c40163ae79ba7a54e6928b53983e74ee8
mISDN: fix possible memory leak in hfcmulti_init()

hc has been allocated in this function and missing free it before
leaving from some 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: David S. Miller <davem@davemloft.net>
drivers/isdn/hardware/mISDN/hfcmulti.c