summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/sdio.c
diff options
context:
space:
mode:
authorErik Stromdahl2019-04-19 09:29:06 +0200
committerKalle Valo2019-04-23 15:26:19 +0200
commitf91b63b0e3b22f3688fd6b352128c3e0e40d02b4 (patch)
tree6526de0c072ad31eff999b5f57b22c76f49617c3 /drivers/net/wireless/ath/ath10k/sdio.c
parentath10k: add initialization of HTC header (diff)
downloadkernel-qcow2-linux-f91b63b0e3b22f3688fd6b352128c3e0e40d02b4.tar.gz
kernel-qcow2-linux-f91b63b0e3b22f3688fd6b352128c3e0e40d02b4.tar.xz
kernel-qcow2-linux-f91b63b0e3b22f3688fd6b352128c3e0e40d02b4.zip
ath10k: sdio: add missing error check
Although not likely, the bundle allocation might fail. Add proper error check and warning print. Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/sdio.c')
-rw-r--r--drivers/net/wireless/ath/ath10k/sdio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/sdio.c b/drivers/net/wireless/ath/ath10k/sdio.c
index d5073fac9509..30102090e282 100644
--- a/drivers/net/wireless/ath/ath10k/sdio.c
+++ b/drivers/net/wireless/ath/ath10k/sdio.c
@@ -584,6 +584,11 @@ static int ath10k_sdio_mbox_rx_alloc(struct ath10k *ar,
act_len,
&bndl_cnt);
+ if (ret) {
+ ath10k_warn(ar, "alloc_bundle error %d\n", ret);
+ goto err;
+ }
+
n_lookaheads += bndl_cnt;
i += bndl_cnt;
/*Next buffer will be the last in the bundle */