media: imx: imx7_mipi_csis: Fix error return code in mipi_csis_async_register()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 24 May 2021 13:35:51 +0000 (15:35 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 2 Jun 2021 12:16:56 +0000 (14:16 +0200)
commit80daed70c6dcc79f5ef36b98157062b0f3522732
tree8bca1f5f4510ef978cc3ad4155a0ccd22741103d
parent25d5ce3a606a1eb23a9265d615a92a876ff9cb5f
media: imx: imx7_mipi_csis: Fix error return code in mipi_csis_async_register()

Fix to return negative error code -EINVAL from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: 88fc81388df9 ("media: imx: imx7_mipi_csis: Reject invalid data-lanes settings")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/imx/imx7-mipi-csis.c