mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-13 01:04:35 +08:00
wil6210: fix _desc access in __wil_tx_vring_tso
_desc is defined in __wil_tx_vring_tso() and may not be set in case len is 0, verify _desc is set. Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org> Signed-off-by: Maya Erez <merez@codeaurora.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
e10b0eddd5
commit
9c64659792
@ -1761,6 +1761,9 @@ static int __wil_tx_vring_tso(struct wil6210_priv *wil, struct wil6210_vif *vif,
|
||||
}
|
||||
}
|
||||
|
||||
if (!_desc)
|
||||
goto mem_error;
|
||||
|
||||
/* first descriptor may also be the last.
|
||||
* in this case d pointer is invalid
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user