From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH v3 01/24] fix default __strnlen_user macro Date: Wed, 28 Sep 2011 15:20:09 +0200 Message-ID: <201109281520.09981.arnd@arndb.de> References: <1317155405-26235-1-git-send-email-msalter@redhat.com> <1317155405-26235-2-git-send-email-msalter@redhat.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1317155405-26235-2-git-send-email-msalter@redhat.com> Sender: linux-kernel-owner@vger.kernel.org To: Mark Salter Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org List-Id: linux-arch.vger.kernel.org On Tuesday 27 September 2011, Mark Salter wrote: > The existing __strnlen_user macro simply resolved to strnlen. However, the > count returned by strnlen_user should include the NULL byte. This patch > fixes the __strnlen_user macro to include the NULL byte in the count. > > Signed-off-by: Mark Salter Acked-by: Arnd Bergmann From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from moutng.kundenserver.de ([212.227.17.10]:49546 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752977Ab1I1NUM (ORCPT ); Wed, 28 Sep 2011 09:20:12 -0400 From: Arnd Bergmann Subject: Re: [PATCH v3 01/24] fix default __strnlen_user macro Date: Wed, 28 Sep 2011 15:20:09 +0200 References: <1317155405-26235-1-git-send-email-msalter@redhat.com> <1317155405-26235-2-git-send-email-msalter@redhat.com> In-Reply-To: <1317155405-26235-2-git-send-email-msalter@redhat.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-ID: <201109281520.09981.arnd@arndb.de> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Mark Salter Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Message-ID: <20110928132009.G9L7_Z2tGlUfFpx8t0b0-qWIma7f-NDwl8c7ZOEuu0s@z> On Tuesday 27 September 2011, Mark Salter wrote: > The existing __strnlen_user macro simply resolved to strnlen. However, the > count returned by strnlen_user should include the NULL byte. This patch > fixes the __strnlen_user macro to include the NULL byte in the count. > > Signed-off-by: Mark Salter Acked-by: Arnd Bergmann