You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
uwb: fix oops when terminating an already terminated reservation
Calling uwb_rsv_terminate() on a reservation already in UWB_RSV_STATE_NONE should do nothing. Signed-off-by: David Vrabel <david.vrabel@csr.com>
This commit is contained in:
@@ -669,6 +669,7 @@ void uwb_rsv_terminate(struct uwb_rsv *rsv)
|
||||
|
||||
mutex_lock(&rc->rsvs_mutex);
|
||||
|
||||
if (rsv->state != UWB_RSV_STATE_NONE)
|
||||
uwb_rsv_set_state(rsv, UWB_RSV_STATE_NONE);
|
||||
|
||||
mutex_unlock(&rc->rsvs_mutex);
|
||||
|
||||
Reference in New Issue
Block a user