diff options
author | David Vrabel <david.vrabel@csr.com> | 2009-01-23 13:57:20 +0100 |
---|---|---|
committer | David Vrabel <david.vrabel@csr.com> | 2009-01-23 13:57:20 +0100 |
commit | 8f5140a6a0b1a9aa79585b0008e88c5d266c5c1d (patch) | |
tree | 8a96101d3c20a60bd0f2527e556457e86f5e58fc /drivers/uwb/drp.c | |
parent | Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torval... (diff) | |
download | linux-8f5140a6a0b1a9aa79585b0008e88c5d266c5c1d.tar.xz linux-8f5140a6a0b1a9aa79585b0008e88c5d266c5c1d.zip |
uwb: lock rc->rsvs_lock with spin_lock_bh()
rc->rsvs_lock may be taken in a timer so lock it with spin_lock_bh().
Signed-off-by: David Vrabel <david.vrabel@csr.com>
Diffstat (limited to 'drivers/uwb/drp.c')
-rw-r--r-- | drivers/uwb/drp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/uwb/drp.c b/drivers/uwb/drp.c index 2b4f9406789d..4f5ca99a04b9 100644 --- a/drivers/uwb/drp.c +++ b/drivers/uwb/drp.c @@ -66,14 +66,14 @@ static void uwb_rc_set_drp_cmd_done(struct uwb_rc *rc, void *arg, } else dev_err(&rc->uwb_dev.dev, "SET-DRP-IE: timeout\n"); - spin_lock(&rc->rsvs_lock); + spin_lock_bh(&rc->rsvs_lock); if (rc->set_drp_ie_pending > 1) { rc->set_drp_ie_pending = 0; uwb_rsv_queue_update(rc); } else { rc->set_drp_ie_pending = 0; } - spin_unlock(&rc->rsvs_lock); + spin_unlock_bh(&rc->rsvs_lock); } /** |