Files
Rituparna Warwatkar 9fa26c971c media: dvb-core: fix feed leak on failed DMX_ADD_PID
dvb_dmxdev_add_pid() allocates a new dmxdev_feed, links it into
filter->feed.ts and, when the filter is already running, immediately
starts the feed.

If starting the feed fails, the newly allocated feed remains on the
list. Subsequent restart and rollback paths may then operate on this
stale entry, leaving feed resources allocated and causing leaks in
drivers that allocate resources from ->start_feed() and release them
from ->stop_feed().

Remove the feed from the list and free it when
dvb_dmxdev_start_feed() fails.

Reported-by: [email protected]
Closes: https://syzkaller.appspot.com/bug?extid=e9a1f5e196de6663631b
Signed-off-by: Rituparna Warwatkar <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Message-ID: <[email protected]>
2026-07-27 18:00:56 +02:00
..
…
…