Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761552AbZLQA6I (ORCPT ); Wed, 16 Dec 2009 19:58:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761478AbZLQA5K (ORCPT ); Wed, 16 Dec 2009 19:57:10 -0500 Received: from kroah.org ([198.145.64.141]:44481 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759689AbZLQAyj (ORCPT ); Wed, 16 Dec 2009 19:54:39 -0500 X-Mailbox-Line: From gregkh@mini.kroah.org Wed Dec 16 16:47:08 2009 Message-Id: <20091217004708.059914148@mini.kroah.org> User-Agent: quilt/0.48-1 Date: Wed, 16 Dec 2009 16:45:59 -0800 From: Greg KH To: linux-kernel@vger.kernel.org, stable@kernel.org Cc: stable-review@kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, Roel Kluin , Michael Krufky , Mauro Carvalho Chehab Subject: [08/18] V4L/DVB: Fix test in copy_reg_bits() In-Reply-To: <20091217005306.GA6230@kroah.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1239 Lines: 37 2.6.27-stable review patch. If anyone has any objections, please let us know. ------------------ From: Roel Kluin commit c95a419a5604ec8a23cd73f61e9bb151e8cbe89b upstream. The reg_pair2[j].reg was tested twice. Signed-off-by: Roel Kluin Acked-by: Michael Krufky Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/media/common/tuners/mxl5007t.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/media/common/tuners/mxl5007t.c +++ b/drivers/media/common/tuners/mxl5007t.c @@ -207,7 +207,7 @@ static void copy_reg_bits(struct reg_pai i = j = 0; while (reg_pair1[i].reg || reg_pair1[i].val) { - while (reg_pair2[j].reg || reg_pair2[j].reg) { + while (reg_pair2[j].reg || reg_pair2[j].val) { if (reg_pair1[i].reg != reg_pair2[j].reg) { j++; continue; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/