Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9041a452 authored by Alexei Avshalom Lazar's avatar Alexei Avshalom Lazar Committed by Maya Erez
Browse files

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.

Change-Id: I5f9aab4da683d6a535443e4b834ec887b044378a
Signed-off-by: default avatarAlexei Avshalom Lazar <ailizaro@codeaurora.org>
Signed-off-by: default avatarMaya Erez <merez@codeaurora.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Git-commit: 9c6465979276c58d5972a959dd35b4d9aff52749
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git


Signed-off-by: default avatarMaya Erez <merez@codeaurora.org>
parent f3dd4aae
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1782,6 +1782,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
	 */