Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c393d179 authored by Marek Puzyniak's avatar Marek Puzyniak Committed by John W. Linville
Browse files

ath9k_htc: avoid kernel panic in ath9k_hw_reset



hw pointer of ath_hw is not assigned to proper value
in function ath9k_hw_reset what finally causes kernel panic.
This can be solved by proper initialization of ath_hw in
ath9k_init_priv.

Signed-off-by: default avatarMarek Puzyniak <marek.puzyniak@tieto.com>
Acked-by: default avatarOleksij Rempel <linux@rempel-privat.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent b18111d9
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -464,6 +464,7 @@ static int ath9k_init_priv(struct ath9k_htc_priv *priv,
		return -ENOMEM;
		return -ENOMEM;


	ah->dev = priv->dev;
	ah->dev = priv->dev;
	ah->hw = priv->hw;
	ah->hw_version.devid = devid;
	ah->hw_version.devid = devid;
	ah->hw_version.usbdev = drv_info;
	ah->hw_version.usbdev = drv_info;
	ah->ah_flags |= AH_USE_EEPROM;
	ah->ah_flags |= AH_USE_EEPROM;