[media] vivid: fix error return code in vivid_create_instance()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 15 Sep 2016 03:36:09 +0000 (00:36 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 19 Sep 2016 17:18:42 +0000 (14:18 -0300)
commita38aaaa43d1acd037afd1bd84ebf9d855afdf714
tree2b6f95b009739accafba87f066e3056d881134a3
parente1618a57b9951a3182b52c4605948c8bb9bb0ea4
[media] vivid: fix error return code in vivid_create_instance()

Fix to return error code -ENOMEM from the memory or workqueue alloc
error handling case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/vivid/vivid-core.c