diff options
| author | Mauro Carvalho Chehab <[email protected]> | 2015-09-04 15:10:29 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2016-01-11 12:18:57 -0200 |
| commit | f50d51661af375c40cae894753e8cd9b1fe82c65 (patch) | |
| tree | 1e0b1ff69cbb3c6ce4d14202749c3463bce57fb1 /tools/perf/scripts/python | |
| parent | eb83a5176801d53f9f78eff8c0bf03e627110206 (diff) | |
[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 <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions