summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2009-11-25 16:08:52 (GMT)
committerDavid S. Miller <davem@davemloft.net>2009-11-26 23:59:04 (GMT)
commit332c1ce9e7b0f9285cba0cf3d32bad87a4f8e40a (patch)
tree543d0dddadb436ba6fc4f58ceb9e322796cd6ad3 /drivers
parent80cb9a0f7f381e1c0e9f6dabec6e67db0dd3a0d9 (diff)
downloadlinux-332c1ce9e7b0f9285cba0cf3d32bad87a4f8e40a.tar.xz
sfc: Strengthen EFX_ASSERT_RESET_SERIALISED
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/sfc/efx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/sfc/efx.c b/drivers/net/sfc/efx.c
index 4787faa..9f3ef38 100644
--- a/drivers/net/sfc/efx.c
+++ b/drivers/net/sfc/efx.c
@@ -186,7 +186,8 @@ static void efx_fini_channels(struct efx_nic *efx);
#define EFX_ASSERT_RESET_SERIALISED(efx) \
do { \
- if (efx->state == STATE_RUNNING) \
+ if ((efx->state == STATE_RUNNING) || \
+ (efx->state == STATE_DISABLED)) \
ASSERT_RTNL(); \
} while (0)