-
- Downloads
ANDROID: goldfish: goldfish_pipe: fix locking errors
NOTE: This is a cherry-pick of the kernel/common/android-4.4 patch 37e461fc into the kernel/goldfish/android-goldfish-3.10 branch. If the get_user_pages_fast() call in goldfish_pipe_read_write() failed, it would return while still holding pipe->lock. goldfish_pipe_read_write() later releases and tries to re-acquire pipe->lock. If the re-acquire call failed, goldfish_pipe_read_write() would try unlock pipe->lock on exit anyway. This fixes the smatch messages: drivers/platform/goldfish/goldfish_pipe.c:392 goldfish_pipe_read_write() error: double unlock 'mutex:&pipe->lock' drivers/platform/goldfish/goldfish_pipe.c:397 goldfish_pipe_read_write() warn: inconsistent returns 'mutex:&pipe->lock'. Change-Id: Id60afd6c191f69af86386405d397b6ad2dd37079 Signed-off-by:Greg Hackmann <ghackmann@google.com>
Please register or sign in to comment