]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l: subdev: Clean up properly in subdev devnode registration error path
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 15 Jan 2017 19:05:30 +0000 (17:05 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 3 Feb 2017 16:23:38 +0000 (14:23 -0200)
commitd59338d6efc651c0513fae5f868048c2f06be81b
tree000c2937691c877ccc2582b714054c57434de214
parent491e5858e579f42c7952b2cfbd0c2a9f11540f5e
[media] v4l: subdev: Clean up properly in subdev devnode registration error path

Set the subdev devnode pointer right after registration to ensure that
later errors won't skip the subdev when unregistering all devnodes.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/v4l2-core/v4l2-device.c