mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 18:12:25 -04:00
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>
This commit is contained in:
committed by
Kalle Valo
parent
fbd428a5b8
commit
f91b63b0e3
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user