summaryrefslogtreecommitdiff
path: root/include/media/v4l2-dev.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-09-04 18:10:29 (GMT)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-01-11 14:18:57 (GMT)
commitf50d51661af375c40cae894753e8cd9b1fe82c65 (patch)
tree1e0b1ff69cbb3c6ce4d14202749c3463bce57fb1 /include/media/v4l2-dev.h
parenteb83a5176801d53f9f78eff8c0bf03e627110206 (diff)
downloadlinux-f50d51661af375c40cae894753e8cd9b1fe82c65.tar.xz
[media] dvbdev: returns error if graph object creation fails
Right now, if something gets wrong at dvb_create_media_entity() or at dvb_create_media_graph(), the device will still be registered. Change the logic to properly handle it and free all media graph objects if something goes wrong at dvb_register_device(). Also, change the logic at dvb_create_media_graph() to return an error code if something goes wrong. It is up to the caller to implement the right logic and to call dvb_unregister_device() to unregister the already-created objects. While here, add a missing logic to unregister the created interfaces. Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/media/v4l2-dev.h')
0 files changed, 0 insertions, 0 deletions