]> git.itanic.dy.fi Git - linux-stable/commit
media: dvb-frontends: m88ds3103: Fix a memory leak in an error handling path of m88ds...
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 30 Oct 2023 07:20:26 +0000 (08:20 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 13 Dec 2023 10:04:46 +0000 (11:04 +0100)
commit5b2f885e2f6f482d05c23f04c8240f7b4fc5bdb5
tree423dab278dbc4f26c736c1eec15e77c0c2ae7515
parenta2dd235df435a05d389240be748909ada91201d2
media: dvb-frontends: m88ds3103: Fix a memory leak in an error handling path of m88ds3103_probe()

If an error occurs after a successful i2c_mux_add_adapter(), then
i2c_mux_del_adapters() should be called to free some resources, as
already done in the remove function.

Fixes: e6089feca460 ("media: m88ds3103: Add support for ds3103b demod")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/dvb-frontends/m88ds3103.c