]> git.karo-electronics.de Git - linux-beck.git/commit
greybus: camera: Initialize mutex before using it
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 13 Jun 2016 09:38:01 +0000 (15:08 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 13 Jun 2016 18:10:09 +0000 (11:10 -0700)
commitd9e4c4ee12e490aca06a0a70d534c60648e2f43a
treefdb4c690c9be2253b92a82997b3b5827f486308f
parent54131222e6dc3a26de5cb036e599307666e58fd9
greybus: camera: Initialize mutex before using it

We are using the mutex from gb_camera_cleanup(), which can get called
even before the mutex is initialized.

Fix it by initializing the mutex early enough.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@linaro.org>
Reviewed-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/camera.c