Procházet zdrojové kódy

mac80211: fix ath9k kernel crash with linux 4.9

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau před 9 roky
rodič
revize
2a4d2e4519

+ 1 - 1
package/kernel/mac80211/patches/548-ath9k_enable_gpio_chip.patch

@@ -123,6 +123,7 @@ Signed-off-by: Felix Fietkau <[email protected]>
 +	if (!gc)
 +	if (!gc)
 +		return;
 +		return;
 +
 +
++	gc->sc = sc;
 +	snprintf(gc->label, sizeof(gc->label), "ath9k-%s",
 +	snprintf(gc->label, sizeof(gc->label), "ath9k-%s",
 +		 wiphy_name(sc->hw->wiphy));
 +		 wiphy_name(sc->hw->wiphy));
 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,5,0)
 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,5,0)
@@ -146,7 +147,6 @@ Signed-off-by: Felix Fietkau <[email protected]>
 +
 +
 +	gc->gchip.owner = NULL;
 +	gc->gchip.owner = NULL;
 +	sc->gpiochip = gc;
 +	sc->gpiochip = gc;
-+	gc->sc = sc;
 +}
 +}
 +
 +
 +/* remove GPIO chip */
 +/* remove GPIO chip */