tg3: Avoid panic from reserved statblk field access
authorMatt Carlson <mcarlson@broadcom.com>
Tue, 24 Apr 2012 13:37:01 +0000 (13:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Apr 2012 18:41:41 +0000 (14:41 -0400)
commitf891ea1634ce41f5f47ae40d8594809f4cd2ca66
tree9acb43b2ddaa8618cf90f65eef193bc813f39100
parentda3a9e9e7b8341cfc939818103cb7ef9f5293de2
tg3: Avoid panic from reserved statblk field access

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>
drivers/net/ethernet/broadcom/tg3.c