From: Christian Gromm Date: Thu, 30 Jul 2015 13:31:37 +0000 (+0200) Subject: Staging: most: fix double unlock X-Git-Tag: v4.14-rc1~4839^2~296 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6852ac9acbb8f11fe736116f7cc819891021404f;p=platform%2Fkernel%2Flinux-rpi.git Staging: most: fix double unlock This patch fixes double unlocking of a spinlock the aim-v4l2 module. Reported-by: Dan Carpenter Signed-off-by: Christian Gromm Signed-off-by: Andrey Shvetsov Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/most/aim-v4l2/video.c b/drivers/staging/most/aim-v4l2/video.c index a977b88..d968791 100644 --- a/drivers/staging/most/aim-v4l2/video.c +++ b/drivers/staging/most/aim-v4l2/video.c @@ -619,6 +619,7 @@ static void __exit aim_exit(void) aim_unregister_videodev(mdev); v4l2_device_disconnect(&mdev->v4l2_dev); v4l2_device_put(&mdev->v4l2_dev); + spin_lock(&list_lock); } spin_unlock(&list_lock);