Linux wireless drivers development
 help / color / mirror / Atom feed
From: Sujith Manoharan <sujith@msujith.org>
To: John Linville <linville@tuxdriver.com>
Cc: linux-wireless@vger.kernel.org, ath9k-devel@qca.qualcomm.com
Subject: [PATCH v2 2/8] ath9k: Handle failure to allocate HW timer
Date: Fri, 22 Aug 2014 20:39:25 +0530	[thread overview]
Message-ID: <1408720171-9765-3-git-send-email-sujith@msujith.org> (raw)
In-Reply-To: <1408720171-9765-1-git-send-email-sujith@msujith.org>

From: Sujith Manoharan <c_manoha@qca.qualcomm.com>

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
---
 drivers/net/wireless/ath/ath9k/init.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c
index 76771f3..4219e7b 100644
--- a/drivers/net/wireless/ath/ath9k/init.c
+++ b/drivers/net/wireless/ath/ath9k/init.c
@@ -601,7 +601,9 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc,
 		goto err_btcoex;
 
 	sc->p2p_ps_timer = ath_gen_timer_alloc(sc->sc_ah, ath9k_p2p_ps_timer,
-		NULL, sc, AR_FIRST_NDP_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);
-- 
2.0.4


  parent reply	other threads:[~2014-08-22 15:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-22 15:09 [PATCH v2 0/8] ath9k patches Sujith Manoharan
2014-08-22 15:09 ` [PATCH v2 1/8] ath9k: Add a debug level for channel context Sujith Manoharan
2014-08-22 15:09 ` Sujith Manoharan [this message]
2014-08-22 15:09 ` [PATCH v2 3/8] ath9k: Move channel operations to channel.c Sujith Manoharan
2014-08-22 15:09 ` [PATCH v2 4/8] ath9k: Add debug information Sujith Manoharan
2014-08-22 15:09 ` [PATCH v2 5/8] ath9k: Add a config option for channel context Sujith Manoharan
2014-08-22 15:09 ` [PATCH v2 6/8] ath9k: Move P2P functions to channel.c Sujith Manoharan
2014-08-22 15:09 ` [PATCH v2 7/8] ath9k: Isolate P2P powersave routines Sujith Manoharan
2014-08-22 15:09 ` [PATCH v2 8/8] ath9k: Isolate ath9k_use_chanctx module parameter Sujith Manoharan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1408720171-9765-3-git-send-email-sujith@msujith.org \
    --to=sujith@msujith.org \
    --cc=ath9k-devel@qca.qualcomm.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox