]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp: fix uninitialized bug in gmin_get_pmic_id_and_addr()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 12 Oct 2021 08:21:50 +0000 (09:21 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 15 Nov 2021 08:11:58 +0000 (08:11 +0000)
commitd71fe1d967e1fe9fd1720c9d5d66728570171824
tree9ed1550d9058be72d7213695b2de4e38c7154ccf
parent9c5e60469946dac3b68ab6efd2fe24aa617c99c8
media: atomisp: fix uninitialized bug in gmin_get_pmic_id_and_addr()

The "power" pointer is not initialized on the else path and that would
lead to an Oops.

Link: https://lore.kernel.org/linux-media/20211012082150.GA31086@kili
Fixes: 9392c3cadff1 ("media: atomisp: Refactor PMIC detection to a separate function")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_gmin_platform.c