mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] staging: media: av7110: check demux and net initialization in av7110_register()
@ 2026-11-02 12:51 Andrey Karelin
  2026-11-02 12:51 ` [PATCH 1/3] staging: media: av7110: check dvb_dmx_init() result " Andrey Karelin
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andrey Karelin @ 2026-11-02 12:51 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, Greg Kroah-Hartman
  Cc: Andrey Karelin, Hans Verkuil, linux-media, linux-staging,
	linux-kernel, lvc-project

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-11-02 12:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-02 12:51 [PATCH 0/3] staging: media: av7110: check demux and net initialization in av7110_register() Andrey Karelin
2026-11-02 12:51 ` [PATCH 1/3] staging: media: av7110: check dvb_dmx_init() result " Andrey Karelin
2026-11-02 12:51 ` [PATCH 2/3] staging: media: av7110: check dvb_dmxdev_init() " Andrey Karelin
2026-11-02 12:51 ` [PATCH 3/3] staging: media: av7110: check dvb_net_init() " Andrey Karelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®