mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-22 19:14:51 +00:00
devm_kasprintf() returns NULL when memory allocation fails. Currently, aspeed_lpc_enable_snoop() does not check for this case, which results in a NULL pointer dereference. Add NULL check after devm_kasprintf() to prevent this issue. Fixes: |
History
|
|
|---|---|---|
| .. | ||
| aspeed-lpc-ctrl.c | ||
| aspeed-lpc-snoop.c | ||
| aspeed-p2a-ctrl.c | ||
| aspeed-socinfo.c | ||
| aspeed-uart-routing.c | ||
| Kconfig | ||
| Makefile | ||