Message ID | 1556293417-27097-3-git-send-email-merez@codeaurora.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 9c6465979276c58d5972a959dd35b4d9aff52749 |
Delegated to: | Kalle Valo |
Headers | show |
Series | wil6210 patches | expand |
diff --git a/drivers/net/wireless/ath/wil6210/txrx.c b/drivers/net/wireless/ath/wil6210/txrx.c index 4ccfd14..a8f315b 100644 --- a/drivers/net/wireless/ath/wil6210/txrx.c +++ b/drivers/net/wireless/ath/wil6210/txrx.c @@ -1760,6 +1760,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 */