diff options
Diffstat (limited to 'drivers/uwb/rsv.c')
-rw-r--r-- | drivers/uwb/rsv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/uwb/rsv.c b/drivers/uwb/rsv.c index 935d5b536db7..1cd84f927540 100644 --- a/drivers/uwb/rsv.c +++ b/drivers/uwb/rsv.c | |||
@@ -555,14 +555,14 @@ static struct uwb_rsv *uwb_rsv_new_target(struct uwb_rc *rc, | |||
555 | * deny the request. | 555 | * deny the request. |
556 | */ | 556 | */ |
557 | rsv->state = UWB_RSV_STATE_T_DENIED; | 557 | rsv->state = UWB_RSV_STATE_T_DENIED; |
558 | spin_lock(&rc->pal_lock); | 558 | mutex_lock(&rc->uwb_dev.mutex); |
559 | list_for_each_entry(pal, &rc->pals, node) { | 559 | list_for_each_entry(pal, &rc->pals, node) { |
560 | if (pal->new_rsv) | 560 | if (pal->new_rsv) |
561 | pal->new_rsv(pal, rsv); | 561 | pal->new_rsv(pal, rsv); |
562 | if (rsv->state == UWB_RSV_STATE_T_ACCEPTED) | 562 | if (rsv->state == UWB_RSV_STATE_T_ACCEPTED) |
563 | break; | 563 | break; |
564 | } | 564 | } |
565 | spin_unlock(&rc->pal_lock); | 565 | mutex_unlock(&rc->uwb_dev.mutex); |
566 | 566 | ||
567 | list_add_tail(&rsv->rc_node, &rc->reservations); | 567 | list_add_tail(&rsv->rc_node, &rc->reservations); |
568 | state = rsv->state; | 568 | state = rsv->state; |