]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Staging: atomisp: fix locking in alloc_user_pages()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 20 Mar 2017 14:40:32 +0000 (14:40 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Mar 2017 07:04:32 +0000 (08:04 +0100)
commitaf4fd0e7a43633e768685b8baf0b5d11d952bbe6
tree3d302e5a4682f57025ea27d88e78c7e0f1dbae56
parent08dcded491c90229295027771447bf0ff9882be6
Staging: atomisp: fix locking in alloc_user_pages()

We call this function with the lock held and should also return with the
lock held as well.  This one error path is not-consistent because we
should return without the lock held.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/atomisp/pci/atomisp2/hmm/hmm_bo.c