mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-16 14:02:10 +00:00
wusb: fix oops when terminating a non-existant reservation
If a reservation was not established, do not try terminating it. Signed-off-by: David Vrabel <david.vrabel@csr.com>
This commit is contained in:
parent
671e470ed0
commit
fe6e87a4b5
@ -110,6 +110,9 @@ int wusbhc_rsv_establish(struct wusbhc *wusbhc)
|
||||
*/
|
||||
void wusbhc_rsv_terminate(struct wusbhc *wusbhc)
|
||||
{
|
||||
uwb_rsv_terminate(wusbhc->rsv);
|
||||
uwb_rsv_destroy(wusbhc->rsv);
|
||||
if (wusbhc->rsv) {
|
||||
uwb_rsv_terminate(wusbhc->rsv);
|
||||
uwb_rsv_destroy(wusbhc->rsv);
|
||||
wusbhc->rsv = NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user