From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from co1outboundpool.messaging.microsoft.com (co1ehsobe005.messaging.microsoft.com [216.32.180.188]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client CN "mail.global.frontbridge.com", Issuer "MSIT Machine Auth CA 2" (not verified)) by ozlabs.org (Postfix) with ESMTPS id CA6D52C0098 for ; Thu, 23 May 2013 16:21:17 +1000 (EST) From: Nicolin Chen To: , Subject: [PATCH] ASoC: fsl: expand the size of the name in fsl_ssi_private struct Date: Thu, 23 May 2013 14:26:36 +0800 Message-ID: <1369290396-21545-1-git-send-email-b42378@freescale.com> MIME-Version: 1.0 Content-Type: text/plain Cc: broonie@kernel.org, timur@tabi.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , strcpy(ssi_private->name, p) in probe() sets "name" by "p", gotten from dts, while the length of "p", if the devicetree node name of SSI is commonly set, would always be larger than 1 char size, so need a larger size for "name". Signed-off-by: Nicolin Chen --- sound/soc/fsl/fsl_ssi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index 2f2d837..b6a5f94 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c @@ -152,5 +152,5 @@ struct fsl_ssi_private { } stats; - char name[1]; + char name[32]; }; -- 1.7.1