Home
last modified time | relevance | path

Searched hist:"2 f76e1d6ca524a888d29aafe29f2ad2003857971" (Results 1 – 1 of 1) sorted by relevance

/linux/sound/soc/fsl/
H A Dimx-audmix.cdiff 2f76e1d6ca524a888d29aafe29f2ad2003857971 Wed Jun 14 14:15:09 CEST 2023 Claudiu Beznea <claudiu.beznea@microchip.com> ASoC: imx-audmix: check return value of devm_kasprintf()

devm_kasprintf() returns a pointer to dynamically allocated memory.
Pointer could be NULL in case allocation fails. Check pointer validity.
Identified with coccinelle (kmerr.cocci script).

Fixes: b86ef5367761 ("ASoC: fsl: Add Audio Mixer machine driver")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20230614121509.443926-1-claudiu.beznea@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>