]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Fix NVRAM selftest
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 9 Mar 2011 16:58:20 +0000 (16:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Mar 2011 09:56:11 +0000 (01:56 -0800)
commitafd32d238f4df2136a7e6b28adb632b8dc3d6cc7
treed7b8a9106ee61835510b09ce66b3e705df7df487
parent36fe60c9123572b308526ce180dd135c7056ce01
tg3: Fix NVRAM selftest

The tg3 NVRAM selftest actually fails when validating the checksum of
the legacy NVRAM format.  However, the test still reported success
because the last update of the return code was a success from the NVRAM
reads.  This patch fixes the code so that the error return code defaults
to a failure status.  Then the patch fixes the reason why the checsum
validation failed.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c