diff options
author | Sony Chacko <sony.chacko@qlogic.com> | 2010-07-24 14:32:18 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-25 19:32:41 -0400 |
commit | 57e46248a71bfcafb3937a7a5ed8ad324c9fc4f0 (patch) | |
tree | 8ec591f1a9ded2733011b2c30204f983951c934e /drivers/net/qlcnic/qlcnic_main.c | |
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/qlcnic/qlcnic_main.c')
-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) | |||
1176 | ret = qlcnic_fw_create_ctx(adapter); | 1176 | ret = qlcnic_fw_create_ctx(adapter); |
1177 | if (ret) { | 1177 | if (ret) { |
1178 | qlcnic_detach(adapter); | 1178 | qlcnic_detach(adapter); |
1179 | netif_device_attach(netdev); | ||
1179 | return ret; | 1180 | return ret; |
1180 | } | 1181 | } |
1181 | 1182 | ||