media: atomisp: pci: fix error return code in atomisp_pci_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Thu, 17 Jun 2021 07:23:29 +0000 (09:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 18 Sep 2021 11:40:20 +0000 (13:40 +0200)
commit23e5fb6475897f3ad380781883ae6d5440daa8b6
tree3cf903df611f09b1c3bce5724b6a742a2cfb33b8
parente5cecb9105d45ad7955e202e048441920595d78b
media: atomisp: pci: fix error return code in atomisp_pci_probe()

[ Upstream commit d14e272958bdfdc40dcafb827d24ba6fdafa9d52 ]

If init_atomisp_wdts() fails, atomisp_pci_probe() need return
error code.

Link: https://lore.kernel.org/linux-media/20210617072329.1233662-1-yangyingliang@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_v4l2.c