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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>
...
> 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



[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux