]> git.karo-electronics.de Git - karo-tx-linux.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, 21 Nov 2012 21:04:09 +0000 (22:04 +0100)
commit1dd55235a1f7919919322f543aad20e35c50ebae
treef28a5acc1c26b4c39037d3ab7abb7eac97ca19d2
parent0792fabaea42484edddabd7e28c5de053e394770
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