Commit 6852ac9a authored by Christian Gromm's avatar Christian Gromm Committed by Greg Kroah-Hartman

Staging: most: fix double unlock

This patch fixes double unlocking of a spinlock the aim-v4l2 module.
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: default avatarAndrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 936d61ee
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment