]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
ath9k: Initialize ah->hw
authorBen Greear <greearb@candelatech.com>
Mon, 10 Jan 2011 07:11:44 +0000 (23:11 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 21 Jan 2011 20:32:21 +0000 (15:32 -0500)
Previous code left it NULL.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/init.c

index 767d8b86f1e11992decc0b43ef8ffba9917b7aa2..23b299818b18dc71f1b6fe80bba1d03c694b88b7 100644 (file)
@@ -537,6 +537,7 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc, u16 subsysid,
        if (!ah)
                return -ENOMEM;
 
+       ah->hw = sc->hw;
        ah->hw_version.devid = devid;
        ah->hw_version.subsysid = subsysid;
        sc->sc_ah = ah;