commit | 780ab790f5099727baff6fa056bba6c5c7c2587a | [log] [tgz] |
---|---|---|
author | Amit Kumar Salecha <amit.salecha@qlogic.com> | Thu Apr 22 02:51:41 2010 +0000 |
committer | David S. Miller <davem@davemloft.net> | Thu Apr 22 15:28:31 2010 -0700 |
tree | 7d49abe211e17afec4337c8b1aaf0ca7be7edfc5 | |
parent | ed6f1353e195b4432e251667b2d84d766d07c79c [diff] |
qlcnic: protect resource access We do netif_device_attach, even if resource allocation fails. Driver callbacks can be called, if device is attached. All these callbacks need to be protected by ADAPTER_UP_MAGIC check. Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>