Merge "media: dvb: mpq: Fix mutex release"
diff --git a/drivers/media/dvb/mpq/demux/mpq_dmx_plugin_common.c b/drivers/media/dvb/mpq/demux/mpq_dmx_plugin_common.c
index 615342c..992d89b 100644
--- a/drivers/media/dvb/mpq/demux/mpq_dmx_plugin_common.c
+++ b/drivers/media/dvb/mpq/demux/mpq_dmx_plugin_common.c
@@ -2072,7 +2072,8 @@
 		return -EINVAL;
 	}
 
-	mutex_unlock(&mpq_demux->mutex);
+	if (!was_locked)
+		mutex_unlock(&mpq_demux->mutex);
 	return 0;
 }
 EXPORT_SYMBOL(mpq_dmx_decoder_fullness_wait);