]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitefe8507245fcb81629f52a3a1b64694f563473e3
tree8bca1f5f4510ef978cc3ad4155a0ccd22741103d
parentccb545a41edc77fd824571c2d313dc17efb083c3
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: 68e1aee7b86c ("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