]> err.no Git - linux-2.6/commit
[SUNGEM]: Fix NAPI regression with reset work
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 29 Nov 2007 10:51:36 +0000 (21:51 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 29 Nov 2007 10:51:36 +0000 (21:51 +1100)
commitdde655c9df02ee07ed090dfdb7ae8741bf299e14
tree9880b957e04e587507910be222e7dc5da7a1e9a5
parent5dba4797115c8fa05c1a4d12927a6ae0b33ffc41
[SUNGEM]: Fix NAPI regression with reset work

sungem's gem_reset_task() will unconditionally try to disable NAPI even
when it's called while the interface is not operating and hence the NAPI
struct isn't enabled. Make napi_disable() depend on gp->running.

Also removes a superfluous test of gp->running in the same function.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/net/sungem.c