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
> 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
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 +-
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 +-