summaryrefslogtreecommitdiff
path: root/include/uapi/linux/socket.h
diff options
context:
space:
mode:
authorDhaval Patel <pdhaval@codeaurora.org>2016-01-29 15:07:38 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:17:48 -0700
commit7dc5ab26693e259a737825904a425a004f5112e6 (patch)
tree96f4a9802542078ce54ab8ba812321e581c640dd /include/uapi/linux/socket.h
parent6b236392b5b94390c4e11ef8f59a4c03be5bf586 (diff)
msm: mdss: fix race condition between vsync handler and ctl_stop
The ctl_stop and vsync_handler both can run in two different threads. That can lead to race condition in vsync handler. -> Core 0: vsync handler thread checks the ctl power status and get preempted by other priority task. -> Core 1: processes the ctl_stop and power off the display device. -> Core 0: Vsync handler task gets chance to run again and tries to access the ctl->op members. The third step leads to invalid structure member access because display is already powered off. This race condition should be fixed by moving all power state checks inside mutex lock. Change-Id: I452c9026074acda2d00954e530fc491d395f106b Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
Diffstat (limited to 'include/uapi/linux/socket.h')
0 files changed, 0 insertions, 0 deletions