1
0
Fork 0

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>
hifive-unleashed-5.1
Christian Gromm 2015-07-30 15:31:37 +02:00 committed by Greg Kroah-Hartman
parent 936d61eeac
commit 6852ac9acb
1 changed files with 1 additions and 0 deletions

View 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);