Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756559Ab1FCWgR (ORCPT ); Fri, 3 Jun 2011 18:36:17 -0400 Received: from out3.smtp.messagingengine.com ([66.111.4.27]:37524 "EHLO out3.smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756263Ab1FCWgQ (ORCPT ); Fri, 3 Jun 2011 18:36:16 -0400 X-Sasl-enc: c5vk2fUN97/wy8opqHUCQPjtgwJq3UIqFFo4MmT9lByy 1307140574 Date: Sat, 4 Jun 2011 07:32:13 +0900 From: Greg KH To: Mike Frysinger Cc: uclinux-dist-devel@blackfin.uclinux.org, Steven Miao , linux-kernel@vger.kernel.org, stable@kernel.org Subject: Re: [stable] [PATCH] Blackfin: strncpy: fix handling of zero lengths Message-ID: <20110603223213.GB9161@kroah.com> References: <1307113762-3330-1-git-send-email-vapier@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1307113762-3330-1-git-send-email-vapier@gentoo.org> 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: 939 Lines: 27 On Fri, Jun 03, 2011 at 11:09:22AM -0400, Mike Frysinger wrote: > From: Steven Miao > > The jump to 4f will cause the NUL padding loop to run at least one time, > so if string length is zero just jump to the end. Otherwise we wrongly > write one NUL byte when size==0. > > Signed-off-by: Steven Miao > Signed-off-by: Mike Frysinger > --- > arch/blackfin/lib/strncpy.S | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read Documentation/stable_kernel_rules.txt for how to do this properly. -- 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/