diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-09-04 20:33:46 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-01-11 15:18:59 +0100 |
commit | 0d3ab8410dcb60aef2104231ba817037b3ba73bd (patch) | |
tree | ced0091bb244d4f5b64a04bfde9a314e9e960e69 /drivers/media/common | |
parent | [media] v4l2 core: enable all interface links at init (diff) | |
download | linux-0d3ab8410dcb60aef2104231ba817037b3ba73bd.tar.xz linux-0d3ab8410dcb60aef2104231ba817037b3ba73bd.zip |
[media] dvb core: must check dvb_create_media_graph()
If media controller is enabled and mdev is filled, it should
ensure that the media graph will be properly initialized.
Enforce that.
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/common')
-rw-r--r-- | drivers/media/common/siano/smsdvb-main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/common/siano/smsdvb-main.c b/drivers/media/common/siano/smsdvb-main.c index f4305ae800f4..ab345490a43a 100644 --- a/drivers/media/common/siano/smsdvb-main.c +++ b/drivers/media/common/siano/smsdvb-main.c @@ -1183,7 +1183,11 @@ static int smsdvb_hotplug(struct smscore_device_t *coredev, if (smsdvb_debugfs_create(client) < 0) pr_info("failed to create debugfs node\n"); - dvb_create_media_graph(&client->adapter); + rc = dvb_create_media_graph(&client->adapter); + if (rc < 0) { + pr_err("dvb_create_media_graph failed %d\n", rc); + goto client_error; + } pr_info("DVB interface registered.\n"); return 0; |