From: Sony Chacko Date: Sat, 24 Jul 2010 18:32:18 +0000 (+0000) Subject: qlcnic: fix diag resource allocation X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=57e46248a71bfcafb3937a7a5ed8ad324c9fc4f0;p=openwrt%2Fstaging%2Fblogic.git qlcnic: fix diag resource allocation netif_device_attach missing from error path in qlcnic_diag_alloc_res Signed-off-by: Sony Chacko Signed-off-by: Amit Kumar Salecha Signed-off-by: David S. Miller --- diff --git a/drivers/net/qlcnic/qlcnic_main.c b/drivers/net/qlcnic/qlcnic_main.c index f147958e05a1..b9615bd745ea 100644 --- a/drivers/net/qlcnic/qlcnic_main.c +++ b/drivers/net/qlcnic/qlcnic_main.c @@ -1176,6 +1176,7 @@ int qlcnic_diag_alloc_res(struct net_device *netdev, int test) ret = qlcnic_fw_create_ctx(adapter); if (ret) { qlcnic_detach(adapter); + netif_device_attach(netdev); return ret; }