
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>