qlcnic: fix interface attach sequence
authorAmit Kumar Salecha <amit.salecha@qlogic.com>
Thu, 1 Apr 2010 19:01:34 +0000 (19:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Apr 2010 21:19:15 +0000 (14:19 -0700)
commit34ce36268331719894c4b237a9413fe9e1ab4f75
treec20b62fdcd5485be277ed55abb5daaea621c04cd
parent65b5b420b5974d86ee030b0a15cd9e6f228071f4
qlcnic: fix interface attach sequence

Interface should be visible even if resource allocation fails.
netif_device_attach should be called for every netif_device_detach.

Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlcnic/qlcnic_main.c