qlcnic: fix memory leaks
authorAnirban Chakraborty <anirban.chakraborty@qlogic.com>
Mon, 17 May 2010 01:22:08 +0000 (01:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 May 2010 00:30:53 +0000 (17:30 -0700)
commitaadd8184ae4b3f0c7874929a1b0248aafc29e509
treeeba828488d708dd7d1b8bd5eb88075f5bb1335d3
parent0e995cd3d3c78377a0bc7d38236fc50e5438fabb
qlcnic: fix memory leaks

Fixes memory leak in error path when memory allocation
for adapter data structures fails.

Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlcnic/qlcnic_ctx.c
drivers/net/qlcnic/qlcnic_init.c