Commit 4f681691 authored by Sujith Manoharan's avatar Sujith Manoharan Committed by John W. Linville
Browse files

ath9k: Handle failure to allocate HW timer

parent 27328a75
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -602,6 +602,8 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc,

	sc->p2p_ps_timer = ath_gen_timer_alloc(sc->sc_ah, ath9k_p2p_ps_timer,
					       NULL, sc, AR_FIRST_NDP_TIMER);
	if (!sc->p2p_ps_timer)
		goto err_btcoex;

	ath9k_cmn_init_crypto(sc->sc_ah);
	ath9k_init_misc(sc);