Re: [PATCH] ASoC: fsl: expand the size of the name in fsl_ssi_private struct

2013-05-23 Thread Timur Tabi
David Laight wrote: 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". Are you sure this isn't allowed for when the

RE: [PATCH] ASoC: fsl: expand the size of the name in fsl_ssi_private struct

2013-05-23 Thread David Laight
> 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". Are you sure this isn't allowed for when the structure is alloc

[PATCH] ASoC: fsl: expand the size of the name in fsl_ssi_private struct

2013-05-23 Thread Nicolin Chen
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 +-

[PATCH] ASoC: fsl: expand the size of the name in fsl_ssi_private struct

2013-05-22 Thread Nicolin Chen
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 +-