Return-path: Received: from mailout4.w2.samsung.com ([211.189.100.14]:42492 "EHLO usmailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751334Ab3L2DqW convert rfc822-to-8bit (ORCPT ); Sat, 28 Dec 2013 22:46:22 -0500 Received: from uscpsbgm1.samsung.com (u114.gpu85.samsung.co.kr [203.254.195.114]) by usmailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MYJ00EJJUH9UT60@usmailout4.samsung.com> for linux-media@vger.kernel.org; Sat, 28 Dec 2013 22:46:21 -0500 (EST) Date: Sun, 29 Dec 2013 01:42:25 -0200 From: Mauro Carvalho Chehab To: =?UTF-8?B?QW5kcsOp?= Roth Cc: Linux Media Mailing List Subject: Re: [PATCH 09/13] libdvbv5: fix section counting Message-id: <20131229014225.01feb88e.m.chehab@samsung.com> In-reply-to: <1388245561-8751-9-git-send-email-neolynx@gmail.com> References: <1388245561-8751-1-git-send-email-neolynx@gmail.com> <1388245561-8751-9-git-send-email-neolynx@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: 8BIT Sender: linux-media-owner@vger.kernel.org List-ID: Em Sat, 28 Dec 2013 16:45:57 +0100 André Roth escreveu: > Signed-off-by: André Roth > --- > lib/libdvbv5/dvb-scan.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/libdvbv5/dvb-scan.c b/lib/libdvbv5/dvb-scan.c > index bd9d2fb..6f3def6 100644 > --- a/lib/libdvbv5/dvb-scan.c > +++ b/lib/libdvbv5/dvb-scan.c > @@ -208,7 +208,7 @@ int dvb_read_section_with_id(struct dvb_v5_fe_parms *parms, int dmx_fd, > else if (start_id == h->id && h->section_id == first_section) > break; > > - if (last_section == -1) > + if (last_section == -1 || h->last_section > last_section) Patch 1. > last_section = h->last_section; > > if (!tbl) { -- Cheers, Mauro