diff options
author | Claudiu Beznea <claudiu.beznea@microchip.com> | 2023-06-14 15:15:09 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-06-19 12:59:27 +0100 |
commit | 2f76e1d6ca524a888d29aafe29f2ad2003857971 (patch) | |
tree | a8ab70d6c6948ea3585e0b64a73038f39cf0b8ef /scripts/gdb/linux/modules.py | |
parent | 997905d523fb85ba1a45159cbb9ae3910275bada (diff) |
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>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions