media: dvb: mpq: Fix initialization of secure-demux resources
When filter is started secure-demux buffers handles should be initialized with invalid values so that they are not released if they were not set. Change-Id: I79c3896130059a5118f4966cc59c80d2f3f83814 Signed-off-by: Hamad Kadmany <hkadmany@codeaurora.org>
This commit is contained in:
committed by
Iliyan Malchev
parent
f7a9e446c0
commit
a21d55687a
@@ -3541,11 +3541,12 @@ int mpq_dmx_init_mpq_feed(struct dvb_demux_feed *feed)
|
||||
}
|
||||
}
|
||||
|
||||
mpq_feed->sdmx_buf_handle = NULL;
|
||||
mpq_feed->metadata_buf_handle = NULL;
|
||||
mpq_feed->sdmx_filter_handle = SDMX_INVALID_FILTER_HANDLE;
|
||||
|
||||
if (!mpq_sdmx_is_loaded()) {
|
||||
/* nothing more to do */
|
||||
mpq_feed->sdmx_buf_handle = NULL;
|
||||
mpq_feed->metadata_buf_handle = NULL;
|
||||
mpq_feed->sdmx_filter_handle = SDMX_INVALID_FILTER_HANDLE;
|
||||
mpq_demux->sdmx_session_handle = SDMX_INVALID_SESSION_HANDLE;
|
||||
mutex_unlock(&mpq_demux->mutex);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user