diff options
author | Sony Chacko <sony.chacko@qlogic.com> | 2010-07-24 22:32:18 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-26 03:32:41 +0400 |
commit | 57e46248a71bfcafb3937a7a5ed8ad324c9fc4f0 (patch) | |
tree | 8ec591f1a9ded2733011b2c30204f983951c934e /drivers/net/qlcnic | |
parent | 36a1898ddfde3e36a6813ac72540e011a3de57ae (diff) | |
download | linux-57e46248a71bfcafb3937a7a5ed8ad324c9fc4f0.tar.xz |
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/qlcnic')
-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; } |