[media] uvcvideo: freeing an error pointer
commitcf2113ca563191a9ee5943561827e50ad8cda4e0
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 25 Nov 2016 10:28:35 +0000 (25 08:28 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 29 Nov 2016 14:05:00 +0000 (29 12:05 -0200)
tree410516aef7ad66be6580a727320d493a7ba42fe7
parentd3d83ee20afda16ad0133ba00f63c11a8d842a35
[media] uvcvideo: freeing an error pointer

A recent cleanup introduced a potential dereference of -EFAULT when we
call kfree(map->menu_info).

Fixes: 4cc5bed1caeb ("[media] uvcvideo: Use memdup_user() rather than duplicating its implementation")

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/uvc/uvc_v4l2.c