[lvc-project] [PATCH 0/3] staging: media: av7110: check demux and net initialization in av7110_register()
Andrey Karelin
a.karelin at ideco.ru
Mon Nov 2 15:51:28 MSK 2026
av7110_register() ignores the return values of dvb_dmx_init(),
dvb_dmxdev_init() and dvb_net_init() for both the main and the optional
budget-patch demux. On failure probing continues with half-initialized
objects, which leads to NULL pointer dereferences on first use or on
device removal. av7110_attach() does not call dvb_unregister() when
av7110_register() fails, so with this series av7110_register() unwinds
what it has set up on its own.
Andrey Karelin (3):
staging: media: av7110: check dvb_dmx_init() result in
av7110_register()
staging: media: av7110: check dvb_dmxdev_init() result in
av7110_register()
staging: media: av7110: check dvb_net_init() result in
av7110_register()
drivers/staging/media/av7110/av7110.c | 49 ++++++++++++++++++++++-----
1 file changed, 40 insertions(+), 9 deletions(-)
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
--
2.56.0
More information about the lvc-project
mailing list