[source] mac80211: fix ath9k kernel crash with linux 4.9

LEDE Commits lede-commits at lists.infradead.org
Tue Feb 7 02:39:15 PST 2017


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/2a4d2e451950fa6724c59de92ef9c62af5a50e1e

commit 2a4d2e451950fa6724c59de92ef9c62af5a50e1e
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Tue Feb 7 11:36:31 2017 +0100

    mac80211: fix ath9k kernel crash with linux 4.9
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 package/kernel/mac80211/patches/548-ath9k_enable_gpio_chip.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/kernel/mac80211/patches/548-ath9k_enable_gpio_chip.patch b/package/kernel/mac80211/patches/548-ath9k_enable_gpio_chip.patch
index 2900ece..d426928 100644
--- a/package/kernel/mac80211/patches/548-ath9k_enable_gpio_chip.patch
+++ b/package/kernel/mac80211/patches/548-ath9k_enable_gpio_chip.patch
@@ -123,6 +123,7 @@ Signed-off-by: Felix Fietkau <nbd at nbd.name>
 +	if (!gc)
 +		return;
 +
++	gc->sc = sc;
 +	snprintf(gc->label, sizeof(gc->label), "ath9k-%s",
 +		 wiphy_name(sc->hw->wiphy));
 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,5,0)
@@ -146,7 +147,6 @@ Signed-off-by: Felix Fietkau <nbd at nbd.name>
 +
 +	gc->gchip.owner = NULL;
 +	sc->gpiochip = gc;
-+	gc->sc = sc;
 +}
 +
 +/* remove GPIO chip */



More information about the lede-commits mailing list