goldfish: locking bugs in goldfish_pipe_read_write()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 2 Feb 2016 09:48:09 +0000 (12:48 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 05:26:57 +0000 (21:26 -0800)
commit5fae054c2b5a7c10475d2e425dfea0c567c1c5dd
treedda71124754c5cf778acd00a8bc51c1556e7b636
parentd40a09464401265e2894061cca388fb86e05b4be
goldfish: locking bugs in goldfish_pipe_read_write()

We recently messed up the error handling here.  We can return with the
pipe->lock held or sometimes we unlock twice by mistake.

Fixes: 2f3be88237a3 ('goldfish_pipe: Pin pages to memory while copying and other cleanups')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/goldfish/goldfish_pipe.c