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

Commit 64b6c8a7 authored by Anton Tikhomirov's avatar Anton Tikhomirov Committed by Felipe Balbi
Browse files

usb: dwc3: Free event buffers array



Array should be freed together with event buffers, since it was
allocated dynamically.

Signed-off-by: default avatarAnton Tikhomirov <av.tikhomirov@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent db1d8ba3
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -206,11 +206,11 @@ static void dwc3_free_event_buffers(struct dwc3 *dwc)

	for (i = 0; i < dwc->num_event_buffers; i++) {
		evt = dwc->ev_buffs[i];
		if (evt) {
		if (evt)
			dwc3_free_one_event_buffer(dwc, evt);
			dwc->ev_buffs[i] = NULL;
		}
	}

	kfree(dwc->ev_buffs);
}

/**