Staging: most: fix double unlock
authorChristian Gromm <christian.gromm@microchip.com>
Thu, 30 Jul 2015 13:31:37 +0000 (15:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 Jul 2015 23:17:20 +0000 (16:17 -0700)
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>
drivers/staging/most/aim-v4l2/video.c

index a977b883ee363a0dd2cd71302f92976a61943dfd..d9687910e4a4138052d8a67721e76bf644d0a804 100644 (file)
@@ -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);
 
This page took 0.036096 seconds and 5 git commands to generate.