Skip to content

Commit

Permalink
[PATCH] dvb: core: demux error handling fix
Browse files Browse the repository at this point in the history
In dvb_dmxdev_filter_start if we go out because of an error, release
previously allocated demux_feed.

Signed-off-by: Peter Beutner <p.beutner@gmx.net>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Peter Beutner authored and Linus Torvalds committed Jul 8, 2005
1 parent 4992775 commit 7619792
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/media/dvb/dvb-core/dmxdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,8 +669,10 @@ static int dvb_dmxdev_filter_start(struct dmxdev_filter *filter)

ret = filter->feed.ts->start_filtering(filter->feed.ts);

if (ret < 0)
if (ret < 0) {
dmxdev->demux->release_ts_feed(dmxdev->demux, *tsfeed);
return ret;
}

break;
}
Expand Down

0 comments on commit 7619792

Please sign in to comment.