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

Commit 6288d107 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: gadget: Fix invalid pointer access in rndis_free_response"

parents 1e1f1160 5017f3f0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -995,6 +995,9 @@ void rndis_free_response(int configNr, u8 *buf)
	list_for_each_safe(act, tmp,
			&(rndis_per_dev_params[configNr].resp_queue))
	{
		if (!act)
			continue;

		r = list_entry(act, rndis_resp_t, list);
		if (r && r->buf == buf) {
			list_del(&r->list);