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>
This commit is contained in:

committed by
David Vrabel

parent
a01777ecf2
commit
3af373021f
@@ -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);
|
||||
|
Reference in New Issue
Block a user