]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitccea297965e4bee1cff862798f846672573dd7dc
treeb2a981719e0709a63df0e428598d7bba6b57d903
parent03027b5455141671bab77173ecfdb43e00a9d6e6
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