Openwrt/target/linux/brcm63xx/patches-3.14
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
..
100-MIPS-BCM63XX-add-USB-host-clock-enable-delay.patch
101-MIPS-BCM63XX-add-USB-device-clock-enable-delay-to-cl.patch
101-MIPS-BCM63XX-sync-mips-counter-during-cpu-bringup.patch
102-MIPS-BCM63XX-move-code-touching-the-USB-private-regi.patch
103-MIPS-BCM63XX-add-OHCI-EHCI-configuration-bits-to-com.patch
104-MIPS-BCM63XX-introduce-BCM63XX_OHCI-configuration-sy.patch
105-MIPS-BCM63XX-add-support-for-the-on-chip-OHCI-contro.patch
106-MIPS-BCM63XX-register-OHCI-controller-if-board-enabl.patch
107-MIPS-BCM63XX-introduce-BCM63XX_EHCI-configuration-sy.patch
108-MIPS-BCM63XX-add-support-for-the-on-chip-EHCI-contro.patch
109-MIPS-BCM63XX-register-EHCI-controller-if-board-enabl.patch
110-MIPS-BCM63XX-EHCI-controller-does-not-support-overcu.patch
201-SPI-Allow-specifying-the-parsers-for-SPI-flash.patch
202-MTD-DEVICES-m25p80-use-parsers-if-provided-in-flash-.patch
203-MTD-DEVICES-m25p80-add-support-for-limiting-reads.patch
204-USB-OHCI-allow-other-arches-to-use-the-BE-frame-numb.patch
206-USB-EHCI-allow-limiting-ports-for-ehci-platform.patch
207-MIPS-BCM63XX-move-device-registration-code-into-its-.patch
208-MIPS-BCM63XX-pass-a-mac-addresss-allocator-to-board-.patch
300-reset_buttons.patch
301-led_count.patch
302-extended-platform-devices.patch
303-spi-board-info.patch
304-boardid_fixup.patch brcm63xx: fixup patches borked by allowing too much fuzz 2014-07-08 12:27:55 +00:00
308-board_leds_naming.patch brcm63xx: fixup patches borked by allowing too much fuzz 2014-07-08 12:27:55 +00:00
309-cfe_version_mod.patch
310-MIPS-BCM63XX-remove-RUNTIME_DETECT-code-from-registe.patch
311-MIPS-BCM63XX-remove-RUNTIME_DETECT-from-irq-setup-co.patch
312-MIPS-BCM63XX-remove-RUNTIME_DETECT-from-reset-code.patch
313-MIPS-BCM63XX-remove-RUNTIME_DETECT-code-from-gpio.patch
314-MIPS-BCM63XX-remove-RUNTIME_DETECT-from-spi-code.patch
315-MIPS-BCM63XX-remove-RUNTIME_DETECT-usage-from-enet-c.patch
316-MIPS-BCM63XX-remove-RUNTIME_DETECT-in-cpu-feature-ov.patch
317-MIPS-BCM63XX-remove-RUNTIME_DETECT-code-for-bcmcpu_g.patch
318-MIPS-BCM63XX-add-width-to-__dispatch_internal.patch brcm63xx: update irq affinity code to latest version 2014-07-12 12:31:47 +00:00
319-MIPS-BCM63XX-move-bcm63xx_init_irq-down.patch brcm63xx: update irq affinity code to latest version 2014-07-12 12:31:47 +00:00
320-MIPS-BCM63XX-replace-irq-dispatch-code-with-a-generi.patch brcm63xx: update irq affinity code to latest version 2014-07-12 12:31:47 +00:00
321-MIPS-BCM63XX-append-irq-line-to-irq_-stat-mask.patch brcm63xx: update irq affinity code to latest version 2014-07-12 12:31:47 +00:00
322-MIPS-BCM63XX-populate-irq_-stat-mask-_addr-for-secon.patch brcm63xx: update irq affinity code to latest version 2014-07-12 12:31:47 +00:00
323-MIPS-BCM63XX-add-cpu-argument-to-dispatch-internal.patch brcm63xx: update irq affinity code to latest version 2014-07-12 12:31:47 +00:00
324-MIPS-BCM63XX-protect-irq-register-accesses.patch brcm63xx: update irq affinity code to latest version 2014-07-12 12:31:47 +00:00
325-MIPS-BCM63XX-wire-up-the-second-cpu-s-irq-line.patch brcm63xx: update irq affinity code to latest version 2014-07-12 12:31:47 +00:00
326-MIPS-BCM63XX-use-irq_desc-as-argument-for-un-mask.patch brcm63xx: update irq affinity code to latest version 2014-07-12 12:31:47 +00:00
327-MIPS-BCM63XX-allow-setting-affinity-for-IPIC.patch brcm63xx: update irq affinity code to latest version 2014-07-12 12:31:47 +00:00
328-cfe_simplify_detection.patch
329-bcm63xxpart_use_cfedetection.patch
330-MIPS-BCM63XX-add-a-new-cpu-variant-helper.patch
331-MIPS-BCM63XX-define-variant-id-field.patch
332-MIPS-BCM63XX-detect-BCM6328-variants.patch
333-MIPS-BCM63XX-detect-BCM6362-variants.patch
334-MIPS-BCM63XX-detect-BCM6368-variants.patch
335-MIPS-BCM63XX-fix-PCIe-memory-window-size.patch
336-MIPS-BCM63XX-dynamically-set-the-pcie-memory-windows.patch
337-MIPS-BCM63XX-widen-cpuid-field.patch
338-MIPS-BCM63XX-increase-number-of-IRQs.patch
339-MIPS-BCM63XX-add-support-for-BCM63268.patch
340-MIPS-BCM63XX-add-pcie-support-for-BCM63268.patch
341-MIPS-BCM63XX-add-support-for-BCM6318.patch
342-MIPS-BCM63XX-split-PCIe-reset-signals.patch
343-MIPS-BCM63XX-add-PCIe-support-for-BCM6318.patch
344-MIPS-BCM63XX-detect-flash-type-early-and-store-the-r.patch
345-MIPS-BCM63XX-fixup-mapped-SPI-flash-access-on-boot.patch
346-MIPS-BCM63XX-USB-ENETSW-6318-clocks.patch
347-MIPS-BCM6318-USB-support.patch
348-MIPS-BCM63XX-fix-BCM63268-USB-clock.patch
349-MIPS-BCM63XX-add-BCM63268-USB-support.patch
350-MIPS-BCM63XX-support-settings-num-usbh-ports.patch
351-set-board-usbh-ports.patch
354-MIPS-BCM63XX-allow-building-support-for-more-than-on.patch
355-MIPS-BCM63XX-allow-board-implementations-to-force-fl.patch
400-bcm963xx_flashmap.patch brcm63xx: fix Livebox 1 support 2014-06-30 13:34:43 +00:00
401-bcm963xx_real_rootfs_length.patch
402_bcm63xx_enet_vlan_incoming_fixed.patch
403-6358-enet1-external-mii-clk.patch
404-NET-bcm63xx_enet-move-phy_-dis-connect-into-probe-re.patch
408-bcm63xx_enet-enable-rgmii-clock-on-external-ports.patch
411-MIPS-BCM63XX-Register-SPI-flash-if-present.patch
412-MTD-physmap-allow-passing-pp_data.patch
413-BCM63XX-allow-providing-fixup-data-in-board-data.patch
414-MTD-m25p80-allow-passing-pp_data.patch
415-MIPS-BCM63XX-export-the-attached-flash-type.patch
416-BCM63XX-add-a-fixup-for-ath9k-devices.patch brcm63xx: 3.14: fix ath9k_pci_fixup 2014-07-28 11:12:25 +00:00
417-MTD-bcm63xxpart-allow-passing-a-caldata-offset.patch
418-MIPS-BCM63XX-pass-caldata-info-to-flash.patch
420-BCM63XX-add-endian-check-for-ath9k.patch brcm63xx: 3.14: fix ath9k_pci_fixup 2014-07-28 11:12:25 +00:00
421-BCM63XX-add-led-pin-for-ath9k.patch brcm63xx: 3.14: fix ath9k_pci_fixup 2014-07-28 11:12:25 +00:00
422-BCM63XX-add-a-fixup-for-rt2x00-devices.patch
423-bcm63xx_enet_add_b53_support.patch
424-bcm63xx_enet_no_request_mem_region.patch
500-board-D4PW.patch
501-board-NB4.patch brcm63xx: fixup patches borked by allowing too much fuzz 2014-07-08 12:27:55 +00:00
502-board-96338W2_E7T.patch brcm63xx: fixup patches borked by allowing too much fuzz 2014-07-08 12:27:55 +00:00
503-board-CPVA642.patch
504-board_dsl_274xb_rev_c.patch
505-board_spw500v.patch
506-board_gw6200_gw6000.patch
507-board-MAGIC.patch
508-board_hw553.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
509-board_rta1320_16m.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
510-board_spw303v.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
511-board_V2500V.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
512-board_BTV2110.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
513-MIPS-BCM63XX-add-inventel-Livebox-support.patch brcm63xx: fix Livebox 1 support 2014-06-30 13:34:43 +00:00
514-board_ct536_ct5621.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
515-board_DWV-S0_fixes.patch
516-board_96348A-122.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
517-RTA1205W_16_uart_fixes.patch
519_board_CPVA502plus.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
520-bcm63xx-add-support-for-96368MVWG-board.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
521-bcm63xx-add-support-for-96368MVNgr-board.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
522-MIPS-BCM63XX-add-96328avng-reference-board.patch brcm63xx: fixup patches borked by allowing too much fuzz 2014-07-08 12:27:55 +00:00
523-MIPS-BCM63XX-add-963281TAN-reference-board.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
524-board_dsl_274xb_rev_f.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
525-board_96348w3.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
526-board_CT6373-1.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
527-board_dva-g3810bn-tl-1.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
528-board_nb6.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
529-board_fast2604.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
530-board_A4001N1.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
531-board_AR-5387un.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
532-board_AR-5381u.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
533-board_rta770bw.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
534-board_hw556.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
535-board_rta770w.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
536-board_fast2704.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
537-board_fast2504n.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
550-alice_gate2_leds.patch brcm63xx: fixup patches borked by allowing too much fuzz 2014-07-08 12:27:55 +00:00
551-96348gw_a_leds.patch brcm63xx: fixup patches borked by allowing too much fuzz 2014-07-08 12:27:55 +00:00
552-board_96348gw-10_reset_button.patch brcm63xx: fixup patches borked by allowing too much fuzz 2014-07-08 12:27:55 +00:00
553-boards_probe_switch.patch brcm63xx: fixup patches borked by allowing too much fuzz 2014-07-08 12:27:55 +00:00
554-board_DWVS0_leds_buttons.patch brcm63xx: fixup patches borked by allowing too much fuzz 2014-07-08 12:27:55 +00:00
555-board_96318ref.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
556-board_96318ref_p300.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
557-board_bcm963269bhr.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
558-board_AR1004G.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
559-board_vw6339gu.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
560-board_963268gu_p300.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
561-board_WAP-5813n.patch brcm63xx: Fix HW553 support 2014-07-12 12:31:39 +00:00
562-board_VR-3025u.patch brcm63xx: Add support for Comtrend VR-3025u 2014-07-27 17:44:45 +00:00
563-board_VR-3025un.patch brcm63xx: Add support for Comtrend VR-3025un 2014-07-27 17:44:48 +00:00
564-board_P870HW-51a_v2.patch brcm63xx: Add support for ZyXEL P870HW-51a v2 2014-07-27 17:44:53 +00:00
565-board_hw520.patch brcm63xx: Add support for Huawei HG520v 2014-07-27 17:44:56 +00:00
566-board_A4001N.patch brcm63xx: Add support for ADB P.DG A4001N 2014-07-27 17:44:59 +00:00
800-wl_exports.patch brcm63xx: replace nvram_buf with a properly initialized array 2014-07-28 15:31:37 +00:00
801-ssb_export_fallback_sprom.patch
802-rtl8367r_fix_RGMII_support.patch
803-jffs2-work-around-unaligned-accesses-failing-on-bcm6.patch