tg3: Avoid panic from reserved statblk field access
commitac931e2df86c0f7e69df21001832ad63ffe3d1c9
authorMatt Carlson <mcarlson@broadcom.com>
Tue, 24 Apr 2012 13:37:01 +0000 (24 13:37 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 May 2012 16:32:18 +0000 (12 09:32 -0700)
treef8d08e1fe7754aa5ad274b32f3aaf741cbab4576
parent2b4a884ae39037f4f340e1249ae944d25b00c025
tg3: Avoid panic from reserved statblk field access

[ Upstream commit f891ea1634ce41f5f47ae40d8594809f4cd2ca66 ]

When RSS is enabled, interrupt vector 0 does not receive any rx traffic.
The rx producer index fields for vector 0's status block should be
considered reserved in this case.  This patch changes the code to
respect these reserved fields, which avoids a kernel panic when these
fields take on non-zero values.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/tg3.c