summaryrefslogtreecommitdiff
path: root/include/linux/overflow.h
diff options
context:
space:
mode:
authorDarshan Kumsi Srinivasa <darssr@codeaurora.org>2018-10-05 17:14:32 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2018-11-12 22:57:38 -0800
commit806f231247cd2a486adc7ec0fc97acc06079b90f (patch)
tree5ec0b9fd1fb83ab37a9ed58548dca124b55819ab /include/linux/overflow.h
parentf1587d8660239a4371a73d10a2c56834d7daf6cc (diff)
msm: vidc: do not set video state to DEINIT very early
If video state set to DEINIT before processing all frame done packets in the list may create video failures as explained below, the client communication to video hardware will fail because of DEINIT state and client will close the session upon failure which will happen in parallel to response thread processing the response packets in the list. It may happen that client already free'd the buffer references and response thread might access the same buffer reference and results in use-after-free memory fault. So In case of sys error from video hardware, set video state to DEINIT after processing all packets in the list to avoid use-after-free failure Change-Id: I688c3ec3feb2b5621d75c4da93ee9870aa0e6dfe Signed-off-by: Darshan Kumsi Srinivasa <darssr@codeaurora.org>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions