commit | bc9e191c9214e8c5bdbd37e3cd9cfd9b67259f54 | [log] [tgz] |
---|---|---|
author | Shalaj Jain <shalajj@codeaurora.org> | Tue Nov 17 13:12:43 2015 -0800 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Tue Jan 26 22:03:55 2016 -0800 |
tree | ac56c58ece363ead407428161e242b1067378a1f | |
parent | e8a02eef3e98f3afc60489420aae90611e2b70a0 [diff] |
mm-video-v4l2: vidc: Fix race condition with msg thread fd close Post a close msg and wait for the thread to process that msg before closing the fd. If we close the fd before, the same might get acquired by someone else leading to a dead lock as the thread then will never exit and will be stuck in read. Change-Id: I3d3d36f90c4fc7d6c51d9900d5f93965c2277077