Merge tag 'v5.9-rc7' into patchwork
[linux-2.6-microblaze.git] / drivers / media / cec / core / cec-adap.c
index 3f016ca..d5d5d28 100644 (file)
@@ -1205,7 +1205,7 @@ void cec_received_msg_ts(struct cec_adapter *adap,
                        /* Cancel the pending timeout work */
                        if (!cancel_delayed_work(&data->work)) {
                                mutex_unlock(&adap->lock);
-                               flush_scheduled_work();
+                               cancel_delayed_work_sync(&data->work);
                                mutex_lock(&adap->lock);
                        }
                        /*