[media] v4l2-device: fix a missing error code
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 15 Dec 2015 11:04:14 +0000 (09:04 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:19:16 +0000 (12:19 -0200)
commit1630b832355399dd0dc4fcc2cadbcad47153a748
tree3755576565df7165e6ee87d40788e1740af540d4
parenta5c82e5622d1b7f479c9a43873c2c5ac1f67765c
[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 <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/v4l2-device.c