From patchwork Sun Feb 7 12:49:58 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Lavra X-Patchwork-Id: 77615 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o17Clq9Q006266 for ; Sun, 7 Feb 2010 12:48:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756183Ab0BGMsQ (ORCPT ); Sun, 7 Feb 2010 07:48:16 -0500 Received: from cp-out10.libero.it ([212.52.84.110]:40625 "EHLO cp-out10.libero.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751942Ab0BGMsP (ORCPT ); Sun, 7 Feb 2010 07:48:15 -0500 Received: from [151.82.7.88] (151.82.7.88) by cp-out10.libero.it (8.5.107) id 4B5B78F701325A8A for linux-media@vger.kernel.org; Sun, 7 Feb 2010 13:48:14 +0100 Subject: [PATCH] dvb-core: fix initialization of feeds list in demux filter From: Francesco Lavra To: linux-media@vger.kernel.org Date: Sun, 07 Feb 2010 13:49:58 +0100 Message-Id: <1265546998.9356.4.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.1-1mdk Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sun, 07 Feb 2010 12:48:17 +0000 (UTC) --- a/drivers/media/dvb/dvb-core/dmxdev.c 2010-02-07 13:19:18.000000000 +0100 +++ b/drivers/media/dvb/dvb-core/dmxdev.c 2010-02-07 13:23:39.000000000 +0100 @@ -761,7 +761,6 @@ static int dvb_demux_open(struct inode * dvb_ringbuffer_init(&dmxdevfilter->buffer, NULL, 8192); dmxdevfilter->type = DMXDEV_TYPE_NONE; dvb_dmxdev_filter_state_set(dmxdevfilter, DMXDEV_STATE_ALLOCATED); - INIT_LIST_HEAD(&dmxdevfilter->feed.ts); init_timer(&dmxdevfilter->timer); dvbdev->users++; @@ -887,6 +886,7 @@ static int dvb_dmxdev_pes_filter_set(str dmxdevfilter->type = DMXDEV_TYPE_PES; memcpy(&dmxdevfilter->params, params, sizeof(struct dmx_pes_filter_params)); + INIT_LIST_HEAD(&dmxdevfilter->feed.ts); dvb_dmxdev_filter_state_set(dmxdevfilter, DMXDEV_STATE_SET);