diff options
author | Claudiu Beznea <[email protected]> | 2023-06-14 15:15:09 +0300 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-06-19 12:59:27 +0100 |
commit | 2f76e1d6ca524a888d29aafe29f2ad2003857971 (patch) | |
tree | a8ab70d6c6948ea3585e0b64a73038f39cf0b8ef /lib/mpi/mpi-sub-ui.c | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions