video: driver: check for session_error at ioctl entry point

Currently session_error check is scattered at multiple places,
So check for session error at ioctl entry point itself(for set
type controls only).

Cleanup &inst->response_works.list as part of session close to
avoid leaks and remove unused variables from inst struct.

Change-Id: I349ec845cc71814b33a94ac07c7628304ddae564
Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
This commit is contained in:
Govindaraj Rajagopal
2021-06-03 14:37:40 +05:30
parent 1f8bf0bd92
commit 7cf3193b10
6 changed files with 74 additions and 34 deletions

View File

@@ -136,9 +136,7 @@ struct msm_vidc_inst {
struct delayed_work response_work;
struct workqueue_struct *response_workq;
struct list_head response_works; /* list of struct response_work */
struct list_head input_ts;
struct list_head enc_input_crs;
struct list_head decode_bitrate_data;
bool once_per_session_set;
bool ipsc_properties_set;
bool opsc_properties_set;