summaryrefslogtreecommitdiff
path: root/drivers/uwb/beacon.c
diff options
context:
space:
mode:
authorStefano Panella <stefano.panella@csr.com>2008-12-23 12:31:09 +0000
committerDavid Vrabel <david.vrabel@csr.com>2008-12-23 12:31:09 +0000
commit3af373021fa32f8f787bfbdcc1a9277a287bde4e (patch)
tree916f0e22168e81e4ab2a28f30410238bac7e6ffa /drivers/uwb/beacon.c
parenta01777ecf227de735d7e525ecda48fe74b838a17 (diff)
downloadlinux-rpi-3af373021fa32f8f787bfbdcc1a9277a287bde4e.tar.gz
linux-rpi-3af373021fa32f8f787bfbdcc1a9277a287bde4e.tar.bz2
linux-rpi-3af373021fa32f8f787bfbdcc1a9277a287bde4e.zip
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/beacon.c')
-rw-r--r--drivers/uwb/beacon.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/uwb/beacon.c b/drivers/uwb/beacon.c
index 0315093e2216..36bc3158006f 100644
--- a/drivers/uwb/beacon.c
+++ b/drivers/uwb/beacon.c
@@ -289,8 +289,6 @@ void uwb_beca_purge(struct uwb_rc *rc)
expires = bce->ts_jiffies + msecs_to_jiffies(beacon_timeout_ms);
if (time_after(jiffies, expires)) {
uwbd_dev_offair(bce);
- list_del(&bce->node);
- uwb_bce_put(bce);
}
}
mutex_unlock(&rc->uwb_beca.mutex);