This is an automatic generated email to let you know that the following patch were queued at the http://git.linuxtv.org/cgit.cgi/media_tree.git tree:
Subject: [media] media-devnode: add missing mutex lock in error handler Author: Max Kellermann <[email protected]> Date: Mon Mar 21 08:33:12 2016 -0300 We should protect the device unregister patch too, at the error condition. Signed-off-by: Max Kellermann <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]> drivers/media/media-devnode.c | 3 +++ 1 file changed, 3 insertions(+) --- http://git.linuxtv.org/cgit.cgi/media_tree.git/commit/?id=587d0d34ecad6e9987577a410c02d433eb41d747 diff --git a/drivers/media/media-devnode.c b/drivers/media/media-devnode.c index 29409f440f1c..64a4b1ef3dcd 100644 --- a/drivers/media/media-devnode.c +++ b/drivers/media/media-devnode.c @@ -267,8 +267,11 @@ int __must_check media_devnode_register(struct media_devnode *mdev, return 0; error: + mutex_lock(&media_devnode_lock); cdev_del(&mdev->cdev); clear_bit(mdev->minor, media_devnode_nums); + mutex_unlock(&media_devnode_lock); + return ret; } _______________________________________________ linuxtv-commits mailing list [email protected] http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits
