diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h index 61800a7b6192..ba5005f4e725 100644 --- a/include/net/bluetooth/l2cap.h +++ b/include/net/bluetooth/l2cap.h @@ -879,7 +879,7 @@ static inline bool l2cap_clear_timer(struct l2cap_chan *chan, /* put(chan) if delayed work cancelled otherwise it is done in delayed work function */ - ret = cancel_delayed_work(work); + ret = cancel_delayed_work_sync(work); if (ret) l2cap_chan_put(chan);