OSDN Git Service

media: tw9910: fix failure handling in tw9910_power_on()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sun, 30 Dec 2018 11:41:40 +0000 (06:41 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 16 Jan 2019 16:29:31 +0000 (11:29 -0500)
commitd6b10dd0017641fee31daa84e478708a33d2f00a
treece75c71bcbfa09838e352483aef79c2fe20a1642
parent49710c32cd9d6626a77c9f5f978a5f58cb536b35
media: tw9910: fix failure handling in tw9910_power_on()

If gpiod_get_optional() fails in tw9910_power_on(), clk is left undisabled.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/tw9910.c