From patchwork Tue Mar 10 09:33:02 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Hunter X-Patchwork-Id: 10840 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n2A9Yj7k032437 for ; Tue, 10 Mar 2009 09:34:46 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754565AbZCJJe0 (ORCPT ); Tue, 10 Mar 2009 05:34:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754552AbZCJJe0 (ORCPT ); Tue, 10 Mar 2009 05:34:26 -0400 Received: from smtp.nokia.com ([192.100.122.230]:51111 "EHLO mgw-mx03.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754374AbZCJJeZ (ORCPT ); Tue, 10 Mar 2009 05:34:25 -0400 Received: from vaebh106.NOE.Nokia.com (vaebh106.europe.nokia.com [10.160.244.32]) by mgw-mx03.nokia.com (Switch-3.2.6/Switch-3.2.6) with ESMTP id n2A9Xjao013057; Tue, 10 Mar 2009 11:34:13 +0200 Received: from vaebh104.NOE.Nokia.com ([10.160.244.30]) by vaebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 10 Mar 2009 11:32:53 +0200 Received: from mgw-int02.ntc.nokia.com ([172.21.143.97]) by vaebh104.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Tue, 10 Mar 2009 11:32:43 +0200 Received: from [127.0.1.1] (essapo-nirac252163.europe.nokia.com [10.162.252.163]) by mgw-int02.ntc.nokia.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id n2A9Wg2g010081; Tue, 10 Mar 2009 11:32:42 +0200 From: Adrian Hunter To: Tony Lindgren Cc: Jarkko Lavinen , Adrian Hunter , David Brownell , linux-omap Mailing List Date: Tue, 10 Mar 2009 11:33:02 +0200 Message-Id: <20090310093302.16889.4535.sendpatchset@ahunter-laptop> In-Reply-To: <20090310093255.16889.30509.sendpatchset@ahunter-laptop> References: <20090310093255.16889.30509.sendpatchset@ahunter-laptop> Subject: [PATCH 1/6] OMAP: mmc-twl4030 fix name buffer length X-OriginalArrivalTime: 10 Mar 2009 09:32:43.0926 (UTC) FILETIME=[2A3D3B60:01C9A163] X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From 60238a3a80b5be3e1843a049b39eabf729c315aa Mon Sep 17 00:00:00 2001 From: Adrian Hunter Date: Thu, 22 Jan 2009 17:58:04 +0200 Subject: [PATCH] OMAP: mmc-twl4030 fix name buffer length Add 1 to buffer length for null terminator. Signed-off-by: Adrian Hunter Acked-by: David Brownell --- arch/arm/mach-omap2/mmc-twl4030.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/mmc-twl4030.c b/arch/arm/mach-omap2/mmc-twl4030.c index 33e5b9b..aeaab5a 100644 --- a/arch/arm/mach-omap2/mmc-twl4030.c +++ b/arch/arm/mach-omap2/mmc-twl4030.c @@ -61,7 +61,7 @@ static struct twl_mmc_controller { struct omap_mmc_platform_data *mmc; u8 twl_vmmc_dev_grp; u8 twl_mmc_dedicated; - char name[HSMMC_NAME_LEN]; + char name[HSMMC_NAME_LEN + 1]; } hsmmc[OMAP34XX_NR_MMC] = { { .twl_vmmc_dev_grp = VMMC1_DEV_GRP,