Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756628Ab3C2Tny (ORCPT ); Fri, 29 Mar 2013 15:43:54 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:56543 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754251Ab3C2Tnw (ORCPT ); Fri, 29 Mar 2013 15:43:52 -0400 Date: Fri, 29 Mar 2013 15:43:48 -0400 (EDT) Message-Id: <20130329.154348.1417472944436998499.davem@davemloft.net> To: Max.Nekludov@us.elster.com Cc: kda@linux-powerpc.org, gerg@uclinux.org, jiri@resnulli.us, linus971@gmail.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mjr@cs.wisc.edu, netdev@vger.kernel.org, sboyd@codeaurora.org, torvalds@linux-foundation.org Subject: Re: Bug in ks8851.c From: David Miller In-Reply-To: References: X-Mailer: Mew version 6.5 on Emacs 24.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (shards.monkeyblade.net [0.0.0.0]); Fri, 29 Mar 2013 12:43:50 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 868 Lines: 26 From: Max.Nekludov@us.elster.com Date: Fri, 29 Mar 2013 19:27:36 +0400 > Denis, > here is patch with commit message: > > Subject: [PATCH] Fix bug in ks8851 driver > > According to the Datasheet (page 52): > 15-12 Reserved > 11-0 RXBC Receive Byte Count > This field indicates the present received frame byte size. > > The code has a bug: > rxh = ks8851_rdreg32(ks, KS_RXFHSR); > rxstat = rxh & 0xffff; > rxlen = rxh >> 16; // BUG!!! 0xFFF mask should be applied > > Signed-off-by: Max Nekludov Applied and queued up for -stable, thanks. -- 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/