openwrtv3/target/linux
Jonas Gorski b723119385 brcm63xx: replace nvram_buf with a properly initialized array
Use an empty nvram_header to tell wl that there is no nvram buf.
wl else might try to allocate huge amount of memory because the
bcm63xx's nvram does not match the expected structure and contains
random values.

Fixes the following warning on load of wl:

[    9.152000] WARNING: at mm/slab_common.c:377 kmalloc_slab+0x4c/0xc0()
[    9.160000] Modules linked in: wl(P+) wl_glue ipv6 gpio_keys_polled input_polldev button_hotplug input_core
[    9.168000] CPU: 0 PID: 366 Comm: kmodloader Tainted: P             3.10.49 #1
[    9.176000] Stack : 00000000 00000000 00000000 00000000 8034b77a 00000042 81ac9af0 c02e0000
[    9.176000]    8028bf70 802df31b 0000016e 8034af28 81ac9af0 c02e0000 c02e0000 81b39810
[    9.176000]    0000002d 8002c9d4 00000003 8002a3c8 802937a0 c02e0000 8028e528 81ab398c
[    9.176000]    00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    9.176000]    00000000 00000000 00000000 00000000 00000000 00000000 00000000 81ab3918
[    9.176000]    ...
[    9.212000] Call Trace:
[    9.216000] [<800224b8>] show_stack+0x48/0x70
[    9.220000] [<8002a538>] warn_slowpath_common+0x78/0xa8
[    9.224000] [<8002a5f0>] warn_slowpath_null+0x18/0x24
[    9.228000] [<8008145c>] kmalloc_slab+0x4c/0xc0
[    9.236000] [<80097258>] __kmalloc+0x20/0x10c
[    9.240000] [<80e23b90>] osl_malloc+0x24/0x6c [wl]
[    9.244000] [<80e15288>] nvram_init+0x54/0x164 [wl]
[    9.252000] [<80e08668>] si_pci_fixcfg+0x60c/0x9e8 [wl]
[    9.256000]
[    9.260000] ---[ end trace b5c4dbb046cf3c83 ]---

Reported-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 41861
2014-07-28 15:31:37 +00:00
..
adm5120 target/linux/*: more dead package cleanups 2014-07-10 20:05:43 +00:00
adm8668 target/linux/*/base-files/lib/upgrade/platform.sh - wrong check for ARGC 2014-06-02 12:43:22 +00:00
amazon target: don't build jffs2 nor images by default 2013-06-05 20:58:59 +00:00
ar7 kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org> 2014-07-20 17:31:11 +00:00
ar71xx add support for the archer c5 2014-07-23 12:47:25 +00:00
at91 target/linux/*/image/Makefile: use new dts path variable 2014-07-21 18:42:06 +00:00
atheros kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org> 2014-07-20 17:31:11 +00:00
au1000 kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org> 2014-07-20 17:31:11 +00:00
avr32 kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org> 2014-07-20 17:31:11 +00:00
bcm53xx kernel: update bcma and ssb to version master-2014-07-22 2014-07-22 21:40:41 +00:00
brcm47xx brcm47xx: don't create named switch_vlan sections 2014-07-26 12:33:48 +00:00
brcm63xx brcm63xx: replace nvram_buf with a properly initialized array 2014-07-28 15:31:37 +00:00
brcm2708 kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org> 2014-07-20 17:31:11 +00:00
cns3xxx target/linux/*/base-files/lib/upgrade/platform.sh - wrong check for ARGC 2014-06-02 12:43:22 +00:00
cns21xx kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org> 2014-07-20 17:31:11 +00:00
cobalt cobalt: add support for kernel 3.10 2014-07-18 19:03:16 +00:00
ep93xx kernel: remove kernel 3.6 2014-07-26 12:23:56 +00:00
gemini kernel: do not build kernel modules by default 2014-07-06 22:34:24 +00:00
generic kernel: remove kernel 3.6 2014-07-26 12:23:56 +00:00
imx6 target/linux/*/image/Makefile: use new dts path variable 2014-07-21 18:42:06 +00:00
iop32x targets: prepare for supporting normal and initramfs images 2013-06-27 19:58:31 +00:00
ixp4xx kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org> 2014-07-20 17:31:11 +00:00
kirkwood target/linux/*/image/Makefile: use new dts path variable 2014-07-21 18:42:06 +00:00
lantiq lantiq: fix dgn3500 and td8970 wifi 2014-07-28 15:26:41 +00:00
malta target/linux/*/image/Makefile: eliminate more LINUX_DIR users 2014-07-21 18:42:11 +00:00
mcs814x build: unify arm target cflags 2013-09-26 17:53:20 +00:00
mpc52xx kernel: do not build kernel modules by default 2014-07-06 22:34:24 +00:00
mpc83xx target/linux/*/image/Makefile: use new dts path variable 2014-07-21 18:42:06 +00:00
mpc85xx target/linux/*/image/Makefile: use new dts path variable 2014-07-21 18:42:06 +00:00
mvebu target/linux/*/image/Makefile: use new dts path variable 2014-07-21 18:42:06 +00:00
mxs target/linux/*/image/Makefile: use new dts path variable 2014-07-21 18:42:06 +00:00
octeon octeon: enable usb and gpio 2014-07-27 14:52:18 +00:00
omap target/linux/*/image/Makefile: use new dts path variable 2014-07-21 18:42:06 +00:00
omap24xx additional musb fixups 2014-02-09 16:14:30 +00:00
orion orion: Update kernel to 3.10.44 2014-07-20 09:42:14 +00:00
ppc40x target/linux/*/image/Makefile: use new dts path variable 2014-07-21 18:42:06 +00:00
ppc44x target/linux/*/image/Makefile: use new dts path variable 2014-07-21 18:42:06 +00:00
pxa pxa: add support for kernel 3.10 2014-07-18 20:45:49 +00:00
ramips ramips: correct typo ubsphy -> usbphy 2014-07-28 15:26:36 +00:00
rb532 kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org> 2014-07-20 17:31:11 +00:00
realview kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org> 2014-07-20 17:31:11 +00:00
sibyte build: unify mips target cflags 2013-09-26 17:53:14 +00:00
sparc kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org> 2014-07-20 17:31:11 +00:00
sunxi target/linux/*/image/Makefile: use new dts path variable 2014-07-21 18:42:06 +00:00
uml kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org> 2014-07-20 17:31:11 +00:00
x86 kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org> 2014-07-20 17:31:11 +00:00
x86_64 kernel: update 3.14 to 3.14.12 2014-07-11 13:28:44 +00:00
xburst target/linux/*/image/Makefile: eliminate more LINUX_DIR users 2014-07-21 18:42:11 +00:00
Makefile