staging: bcm2835/mmal-vchiq: unlock on error in buffer_from_host()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 17 Feb 2017 23:20:36 +0000 (02:20 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Feb 2017 16:05:48 +0000 (17:05 +0100)
commitf4082c6f28a8e77dcb694c6f23de9e533251051d
tree7118ef180f995d26bc56962bd0a4b035f77d4f6d
parentdc7ffefdcc28a45214aa707fdc3df6a5e611ba09
staging: bcm2835/mmal-vchiq: unlock on error in buffer_from_host()

We should unlock before returning on this error path.

Fixes: 7b3ad5abf027 ("staging: Import the BCM2835 MMAL-based V4L2 camera driver.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/platform/bcm2835/mmal-vchiq.c