Commit f91b63b0 authored by Erik Stromdahl's avatar Erik Stromdahl Committed by Kalle Valo

ath10k: sdio: add missing error check

Although not likely, the bundle allocation might fail.
Add proper error check and warning print.
Signed-off-by: default avatarErik Stromdahl <erik.stromdahl@gmail.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent fbd428a5
...@@ -584,6 +584,11 @@ static int ath10k_sdio_mbox_rx_alloc(struct ath10k *ar, ...@@ -584,6 +584,11 @@ static int ath10k_sdio_mbox_rx_alloc(struct ath10k *ar,
act_len, act_len,
&bndl_cnt); &bndl_cnt);
if (ret) {
ath10k_warn(ar, "alloc_bundle error %d\n", ret);
goto err;
}
n_lookaheads += bndl_cnt; n_lookaheads += bndl_cnt;
i += bndl_cnt; i += bndl_cnt;
/*Next buffer will be the last in the bundle */ /*Next buffer will be the last in the bundle */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment