be2net: avoid napi_disable() when it has not been enabled
authorSomnath Kotur <somnath.kotur@emulex.com>
Thu, 2 May 2013 03:36:55 +0000 (03:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 May 2013 20:43:27 +0000 (16:43 -0400)
When RQ creation fails in be_open(), driver jumps to be_close() where
napi_disable() is done without a prior napi_enable(); leading to a hang.
This change is needed as there is no way to see if napi is enable/disabled.

Signed-off-by: Kalesh AP <kalesh.purayil@emulex.com>
Signed-off-by: Somnath Kotur <somnath.kotur@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found