mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[media] v4l2-device: fix a missing error code
We need to set "err = -ENOMEM" here.
Fixes: 38b11f19667a ('[media] v4l2-core: create MC interfaces for devnodes')
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
a5c82e5622
commit
1630b83235
1 changed files with 3 additions and 1 deletions
|
|
@ -267,8 +267,10 @@ int v4l2_device_register_subdev_nodes(struct v4l2_device *v4l2_dev)
|
|||
link = media_create_intf_link(&sd->entity,
|
||||
&vdev->intf_devnode->intf,
|
||||
MEDIA_LNK_FL_ENABLED);
|
||||
if (!link)
|
||||
if (!link) {
|
||||
err = -ENOMEM;
|
||||
goto clean_up;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
sd->devnode = vdev;
|
||||
|
|
|
|||
Loading…
Reference in a new issue