ASoC: fsl: expand the size of the name in fsl_ssi_private struct

Submitted by Nicolin Chen on May 23, 2013, 6:26 a.m.

Details

Message ID 1369290396-21545-1-git-send-email-b42378@freescale.com
State Rejected
Headers show

Commit Message

Nicolin Chen May 23, 2013, 6:26 a.m.
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 <b42378@freescale.com>
---
 sound/soc/fsl/fsl_ssi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

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];
 };