commit | 03fbfbc6f3ec7ad3d71a15117ff137337c182fe8 | [log] [tgz] |
---|---|---|
author | Jordan Crouse <jcrouse@codeaurora.org> | Fri Dec 16 14:28:28 2011 -0700 |
committer | Jordan Crouse <jcrouse@codeaurora.org> | Mon Dec 19 14:01:09 2011 -0700 |
tree | 21be5a616f9dbd0c1900b4a819b17cf6e36cc55e | |
parent | 671f5ce6f4d0a4c09670536a14ee33bbaeac5a74 [diff] |
base: genlock: Avoid a race condition when releasing locks Avoid a race condition if a lock gets released by all owners but a process fails to close a lock file descriptor and tries to reuse it. Clearing the pointers to the data will ensure that attaching a dead lock will return an error. Change-Id: Ic0dedbadd693c7a22b027052cdd247370b28a7c5 Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>