[linux-dvb] [patch] fix two minor issues in dvb_core

Johannes Stezenbach js at linuxtv.org
Sun Jun 12 14:30:04 CEST 2005


Peter Beutner wrote:
> 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 at gmx.net>
...
> Index: linux/drivers/media/dvb/dvb-core/dmxdev.c
> ===================================================================
> RCS file: /cvs/linuxtv/dvb-kernel/linux/drivers/media/dvb/dvb-core/dmxdev.c,v
> retrieving revision 1.40
> diff -p -u -r1.40 dmxdev.c
> --- linux/drivers/media/dvb/dvb-core/dmxdev.c	5 Apr 2005 00:54:19 -0000	1.40
> +++ linux/drivers/media/dvb/dvb-core/dmxdev.c	2 Jun 2005 21:53:56 -0000
> @@ -669,8 +669,10 @@ static int dvb_dmxdev_filter_start(struc
>  
>  		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;
>  	}

I just comitted this patch to CVS.

Thanks,
Johannes




More information about the linux-dvb mailing list