]> git.baikalelectronics.ru Git - kernel.git/commit
media: i2c: ov5648: fix wrong pointer passed to IS_ERR() and PTR_ERR()
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 30 Mar 2021 13:04:46 +0000 (15:04 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 17 May 2022 07:18:30 +0000 (09:18 +0200)
commit475c2344fca8cb383a102dd518e723647aec15ac
tree2614d7f48d1e3ed74f1577d23e27fd202c06e6ca
parent7acabe53b8d213c4a7597abaf547c0d15d661207
media: i2c: ov5648: fix wrong pointer passed to IS_ERR() and PTR_ERR()

IS_ERR() and PTR_ERR() use wrong pointer, it should be
sensor->dovdd, fix it.

Fixes: c6372971ea8d ("media: i2c: Add support for the OV5648 image sensor")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/ov5648.c