Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932526Ab3IDX73 (ORCPT ); Wed, 4 Sep 2013 19:59:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24758 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762552Ab3IDX71 (ORCPT ); Wed, 4 Sep 2013 19:59:27 -0400 Date: Wed, 4 Sep 2013 19:59:17 -0400 From: Dave Jones To: pboettcher@kernellabs.com Cc: mchehab@redhat.com, Linux Kernel Subject: dvb-usb/technisat-usb2: Fix cut-n-paste thinko Message-ID: <20130904235917.GC5727@redhat.com> Mail-Followup-To: Dave Jones , pboettcher@kernellabs.com, mchehab@redhat.com, Linux Kernel MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 912 Lines: 23 This looks like it was cut and pasted from the code above which does similar checks on txlen, but someone forgot to change the variable. Signed-off-by: Dave Jones diff --git a/drivers/media/usb/dvb-usb/technisat-usb2.c b/drivers/media/usb/dvb-usb/technisat-usb2.c index 40832a1..98d24ae 100644 --- a/drivers/media/usb/dvb-usb/technisat-usb2.c +++ b/drivers/media/usb/dvb-usb/technisat-usb2.c @@ -102,7 +102,7 @@ static int technisat_usb2_i2c_access(struct usb_device *udev, if (rxlen > 62) { err("i2c RX buffer can't exceed 62 bytes (dev 0x%02x)", device_addr); - txlen = 62; + rxlen = 62; } b[0] = I2C_SPEED_100KHZ_BIT; -- 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/