Changeset 29558


Ignore:
Timestamp:
2011-12-17T00:41:44+01:00 (6 years ago)
Author:
nbd
Message:

ath9k: fix a crash in led init

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/mac80211/patches/581-ath9k_extra_platform_leds.patch

    r29530 r29558  
    5757        INIT_LIST_HEAD(&sc->leds); 
    5858  
    59 @@ -133,6 +154,9 @@ void ath_init_leds(struct ath_softc *sc) 
     59@@ -133,6 +154,12 @@ void ath_init_leds(struct ath_softc *sc) 
    6060                trigger = ieee80211_get_radio_led_name(sc->hw); 
    6161  
    6262        ath_create_gpio_led(sc, sc->sc_ah->led_pin, led_name, trigger, 1); 
     63+ 
     64+       if (!pdata) 
     65+               return; 
    6366+ 
    6467+       for (i = 0; i < pdata->num_leds; i++) 
Note: See TracChangeset for help on using the changeset viewer.