diff options
-rw-r--r-- | drivers/media/cec/cec-adap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/cec/cec-adap.c b/drivers/media/cec/cec-adap.c index 0c0d9107383e..31d1f4ab915e 100644 --- a/drivers/media/cec/cec-adap.c +++ b/drivers/media/cec/cec-adap.c | |||
@@ -844,6 +844,8 @@ int cec_transmit_msg_fh(struct cec_adapter *adap, struct cec_msg *msg, | |||
844 | */ | 844 | */ |
845 | mutex_unlock(&adap->lock); | 845 | mutex_unlock(&adap->lock); |
846 | wait_for_completion_killable(&data->c); | 846 | wait_for_completion_killable(&data->c); |
847 | if (!data->completed) | ||
848 | cancel_delayed_work_sync(&data->work); | ||
847 | mutex_lock(&adap->lock); | 849 | mutex_lock(&adap->lock); |
848 | 850 | ||
849 | /* Cancel the transmit if it was interrupted */ | 851 | /* Cancel the transmit if it was interrupted */ |