diff options
author | Stefano Panella <stefano.panella@csr.com> | 2008-12-23 07:31:09 -0500 |
---|---|---|
committer | David Vrabel <david.vrabel@csr.com> | 2008-12-23 07:31:09 -0500 |
commit | 3af373021fa32f8f787bfbdcc1a9277a287bde4e (patch) | |
tree | 916f0e22168e81e4ab2a28f30410238bac7e6ffa /drivers/uwb/lc-dev.c | |
parent | a01777ecf227de735d7e525ecda48fe74b838a17 (diff) |
uwb: remove beacon cache entry after calling uwb_notify()
Removing the beacon cache entry from a uwb_dev can cause an oops if the
bce is released before the call to uwb_notify().
Signed-off-by: Stefano Panella <stefano.panella@csr.com>
Signed-off-by: David Vrabel <david.vrabel@csr.com>
Diffstat (limited to 'drivers/uwb/lc-dev.c')
-rw-r--r-- | drivers/uwb/lc-dev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/uwb/lc-dev.c b/drivers/uwb/lc-dev.c index f78087b85918..e9fe1bb7eb23 100644 --- a/drivers/uwb/lc-dev.c +++ b/drivers/uwb/lc-dev.c | |||
@@ -375,6 +375,8 @@ int __uwb_dev_offair(struct uwb_dev *uwb_dev, struct uwb_rc *rc) | |||
375 | rc ? rc->uwb_dev.dev.parent->bus->name : "n/a", | 375 | rc ? rc->uwb_dev.dev.parent->bus->name : "n/a", |
376 | rc ? dev_name(rc->uwb_dev.dev.parent) : ""); | 376 | rc ? dev_name(rc->uwb_dev.dev.parent) : ""); |
377 | uwb_dev_rm(uwb_dev); | 377 | uwb_dev_rm(uwb_dev); |
378 | list_del(&uwb_dev->bce->node); | ||
379 | uwb_bce_put(uwb_dev->bce); | ||
378 | uwb_dev_put(uwb_dev); /* for the creation in _onair() */ | 380 | uwb_dev_put(uwb_dev); /* for the creation in _onair() */ |
379 | 381 | ||
380 | return 0; | 382 | return 0; |