]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: BCM47XX: Fix some very confused types and data corruption
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 6 Dec 2013 23:56:53 +0000 (18:56 -0500)
committerJohn Crispin <blogic@openwrt.org>
Tue, 14 Jan 2014 11:48:26 +0000 (12:48 +0100)
commita0fef1b7decfae612b0187174d3e4540bf55b79e
tree7c73436f212e9c1475ba28c3866677e004628c61
parent677df9436adc079e0cc50ebc671aa47d37017ae6
MIPS: BCM47XX: Fix some very confused types and data corruption

Fix nvram_read_alpha2 copying too many bytes over the ssb_sprom
structure. Also fix the arguments of the read_macaddr, although the code
was technically not wrong before due to an extra dereference.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6211/
arch/mips/bcm47xx/sprom.c