summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2015-07-30 15:31:37 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-07-31 16:17:20 -0700
commit6852ac9acbb8f11fe736116f7cc819891021404f (patch)
tree673ae84c835b5955c1313134e1195354e52ae258
parent936d61eeac71504b52977cc9f9339cb86866c531 (diff)
Staging: most: fix double unlock
This patch fixes double unlocking of a spinlock the aim-v4l2 module. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/most/aim-v4l2/video.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/most/aim-v4l2/video.c b/drivers/staging/most/aim-v4l2/video.c
index a977b883ee36..d9687910e4a4 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);