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)
commit04d3d6247fa39d4ee6488f1bd5314879ab9d5c9d
treeb2a981719e0709a63df0e428598d7bba6b57d903
parent701962d0bbc74cfe60a93389a3394ee358362a71
be2net: avoid napi_disable() when it has not been enabled

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>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_main.c