mirror of https://github.com/torvalds/linux.git
devm_kasprintf() may return NULL on memory allocation failure,
but the debug message prints cpus->dai_name before checking it.
Move the dev_dbg() call after the NULL check to prevent potential
NULL pointer dereference.
Fixes:
|
||
|---|---|---|
| .. | ||
| acp | ||
| include | ||
| ps | ||
| raven | ||
| renoir | ||
| rpl | ||
| vangogh | ||
| yc | ||
| Kconfig | ||
| Makefile | ||
| acp-config.c | ||
| acp-da7219-max98357a.c | ||
| acp-es8336.c | ||
| acp-pcm-dma.c | ||
| acp-rt5645.c | ||
| acp.h | ||
| acp3x-rt5682-max9836.c | ||
| mach-config.h | ||