]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: brcmfmac: fix scatter-gather handling by detecting end of sg list
authorNorbert van Bolhuis <nvbolhuis@gmail.com>
Fri, 8 Nov 2024 12:52:30 +0000 (13:52 +0100)
committerKalle Valo <kvalo@kernel.org>
Mon, 9 Dec 2024 15:58:19 +0000 (17:58 +0200)
commit52e8726d6782a14c7f9e0fea5a5bc8e6a1992fd4
tree977c63b49311a1c95b227bc29cf373513e396865
parentb81e0211e9c70be9eb70924e4e29698bfbbbc03a
wifi: brcmfmac: fix scatter-gather handling by detecting end of sg list

The scatter-gather handling uses a pre-allocated list (with nents entries).
If the driver runs out of sg entries it will result in an oops. Let's detect
this instead and make the SDIO block transfer fail.

Signed-off-by: Norbert van Bolhuis <nvbolhuis@gmail.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20241108125609.107016-1-nvbolhuis@gmail.com
drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c