WSL2-Linux-Kernel/drivers/media
Evgeny Novikov 0535d35063 media: dvb-frontends: mn88443x: Handle errors of clk_prepare_enable()
[ Upstream commit 69a10678e2 ]

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: 0f408ce894 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-18 19:16:30 +01:00
..
cec
common media: videobuf2: rework vb2_mem_ops API 2021-11-18 19:16:13 +01:00
dvb-core
dvb-frontends media: dvb-frontends: mn88443x: Handle errors of clk_prepare_enable() 2021-11-18 19:16:30 +01:00
firewire media: firewire: firedtv-avc: fix a buffer overflow in avc_ca_pmt() 2021-11-06 14:13:30 +01:00
i2c media: i2c: ths8200 needs V4L2_ASYNC 2021-11-18 19:16:28 +01:00
mc
mmc
pci media: cx23885: Fix snd_card_free call on null card pointer 2021-11-18 19:16:29 +01:00
platform media: venus: fix vpp frequency calculation for decoder 2021-11-18 19:16:30 +01:00
radio media: si470x: Avoid card name truncation 2021-11-18 19:16:29 +01:00
rc media: mceusb: return without resubmitting URB in case of -EPROTO error. 2021-11-18 19:16:13 +01:00
spi media: cxd2880-spi: Fix a null pointer dereference on error handling path 2021-11-18 19:16:27 +01:00
test-drivers media: vidtv: Fix memory leak in remove 2021-11-18 19:16:12 +01:00
tuners
usb media: em28xx: Don't use ops->suspend if it is NULL 2021-11-18 19:16:29 +01:00
v4l2-core media: v4l2-ioctl: S_CTRL output the right value 2021-11-18 19:16:28 +01:00
Kconfig
Makefile