]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit545c30147a057572c643e64a638f27b156cb1754
tree9d5547b44b31086b498ac83045e3b3dc847836a2
parent55e256e7639f15682c1f583c3060b73d8c5a3a1b
MIPS: BCM63XX: fix nvram checksum calculation

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
arch/mips/bcm63xx/nvram.c