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

Commit fe6e87a4 authored by David Vrabel's avatar David Vrabel
Browse files

wusb: fix oops when terminating a non-existant reservation



If a reservation was not established, do not try terminating it.

Signed-off-by: default avatarDavid Vrabel <david.vrabel@csr.com>
parent 671e470e
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -110,6 +110,9 @@ int wusbhc_rsv_establish(struct wusbhc *wusbhc)
 */
void wusbhc_rsv_terminate(struct wusbhc *wusbhc)
{
	if (wusbhc->rsv) {
		uwb_rsv_terminate(wusbhc->rsv);
		uwb_rsv_destroy(wusbhc->rsv);
		wusbhc->rsv = NULL;
	}
}