From: Michael Chan Date: Fri, 31 Dec 2010 19:03:14 +0000 (-0800) Subject: bnx2: Free IRQ before freeing status block memory X-Git-Tag: v2.6.38-rc1~476^2~73 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a29ba9d2d84889686a3af1c5a6023f28be75ccba;p=pandora-kernel.git bnx2: Free IRQ before freeing status block memory When changing ring size, we free all memory including status block memory. If we're in INTA mode and sharing IRQ, the IRQ handler can be called and it will reference the NULL status block pointer. Because of the lockless design of the IRQ handler, there is no simple way to synchronize and prevent this. So we avoid this problem by freeing the IRQ handler before freeing the status block memory. Signed-off-by: Michael Chan Signed-off-by: David S. Miller --- Reading git-diff-tree failed