Re: [stable] [PATCH] Blackfin: strncpy: fix handling of zero lengths

From: Greg KH
Date: Fri Jun 03 2011 - 18:36:20 EST

On Fri, Jun 03, 2011 at 11:09:22AM -0400, Mike Frysinger wrote:
> From: Steven Miao <realmz6@xxxxxxxxx>
> 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 <realmz6@xxxxxxxxx>
> Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
> ---
> 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@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at