From: Adrian Hunter Date: Thu, 22 Jan 2009 15:58:04 +0000 (+0200) Subject: OMAP: mmc-twl4030 fix name buffer length X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9ed678812ff0a8c42884ce5179b0ac34e3d0c995;p=linux-2.6-omap-h63xx.git OMAP: mmc-twl4030 fix name buffer length Add 1 to buffer length for null terminator. Signed-off-by: Adrian Hunter Acked-by: David Brownell Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/mmc-twl4030.c b/arch/arm/mach-omap2/mmc-twl4030.c index 33e5b9b7da4..aeaab5a8b9c 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,