diff options
author | Sony Chacko | 2010-07-24 18:32:18 +0000 |
---|---|---|
committer | David S. Miller | 2010-07-25 16:32:41 -0700 |
commit | 57e46248a71bfcafb3937a7a5ed8ad324c9fc4f0 (patch) | |
tree | 8ec591f1a9ded2733011b2c30204f983951c934e /drivers/net | |
parent | 36a1898ddfde3e36a6813ac72540e011a3de57ae (diff) |
qlcnic: fix diag resource allocation
netif_device_attach missing from error path in qlcnic_diag_alloc_res
Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/qlcnic/qlcnic_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |