be2net: Fix a potential crash during shutdown.
authorAjit Khaparde <ajit.khaparde@emulex.com>
Wed, 6 Apr 2011 05:53:13 +0000 (05:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Apr 2011 19:40:18 +0000 (12:40 -0700)
commit2d5d4154650459b61a8e7097d186a89d89dab8ed
tree1a68a7ce66ee6fae5731e53287f7e3c54209c394
parent1e58148670908e9fd180761c0eed3839b6778f01
be2net: Fix a potential crash during shutdown.

adapter could remain uninitialized if probe fails for some reason.
A null pointer access could cause a crash if be_shutdown
is called after that.

Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c