Re: [PATCH] sungem: fix napi regression with reset work
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2007-11-29 10:58:01
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2007-11-29 10:58:01
On Mon, Nov 26, 2007 at 09:02:08PM +0100, Johannes Berg wrote:
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>
Patch applied to net-2.6. Thanks Johannes! -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} [off-list ref] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt