]> git.baikalelectronics.ru Git - kernel.git/commit
media: dvb-frontends: mn88443x: Handle errors of clk_prepare_enable()
authorEvgeny Novikov <novikov@ispras.ru>
Sun, 22 Aug 2021 09:48:03 +0000 (11:48 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 8 Oct 2021 11:53:30 +0000 (13:53 +0200)
commitfc1134e7979705d70879b14bcf504cc90649428c
treeb15a23253b74a64e4a31bcdb3701cc4d2377067a
parent36ca671eb318574d54eaf6c018b209cfd82bc589
media: dvb-frontends: mn88443x: Handle errors of clk_prepare_enable()

mn88443x_cmn_power_on() did not handle possible errors of
clk_prepare_enable() and always finished successfully so that its caller
mn88443x_probe() did not care about failed preparing/enabling of clocks
as well.

Add missed error handling in both mn88443x_cmn_power_on() and
mn88443x_probe(). This required to change the return value of the former
from "void" to "int".

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

Fixes: 8f0030954d6f ("media: dvb-frontends: add Socionext MN88443x ISDB-S/T demodulator driver")
Signed-off-by: Evgeny Novikov <novikov@ispras.ru>
Co-developed-by: Kirill Shilimanov <kirill.shilimanov@huawei.com>
Signed-off-by: Kirill Shilimanov <kirill.shilimanov@huawei.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/dvb-frontends/mn88443x.c