Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1630b832 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab
Browse files

[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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent a5c82e56
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -267,9 +267,11 @@ 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;
	}