4bc6073615
First the media device node was created, and if successful it was
marked as 'registered'. This leaves a small race condition where
an application can open the device node and get an error back
because the 'registered' flag was not yet set.
Change the order: first set the 'registered' flag, then actually
register the media device node. If that fails, then clear the flag.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
mc-dev-allocator.c | ||
mc-device.c | ||
mc-devnode.c | ||
mc-entity.c | ||
mc-request.c |