MIPS: BCM63XX: fix nvram checksum calculation
authorJonas Gorski <jonas.gorski@gmail.com>
Sun, 11 Nov 2012 12:22:34 +0000 (12:22 +0000)
committerJohn Crispin <blogic@openwrt.org>
Wed, 12 Dec 2012 17:57:49 +0000 (18:57 +0100)
The current checksum calculation code does nothing except checking that
the first byte of nvram is 0 without actually checking the checksum.

Implement the correct checksum calculation by calculating the crc32 with
the checksum field set to 0.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Patchwork: http://patchwork.linux-mips.org/patch/4540


No differences found