devm_kasprintf() returns NULL when memory allocation fails. Currently,
raspberrypi_clk_register() does not check for this case, which results
in a NULL pointer dereference.
Add NULL check after devm_kasprintf() to prevent this issue.
Fixes:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| clk-bcm63xx-gate.c | ||
| clk-bcm63xx.c | ||
| clk-bcm281xx.c | ||
| clk-bcm2711-dvp.c | ||
| clk-bcm2835-aux.c | ||
| clk-bcm2835.c | ||
| clk-bcm21664.c | ||
| clk-bcm53573-ilp.c | ||
| clk-bcm63268-timer.c | ||
| clk-cygnus.c | ||
| clk-hr2.c | ||
| clk-iproc-armpll.c | ||
| clk-iproc-asiu.c | ||
| clk-iproc-pll.c | ||
| clk-iproc.h | ||
| clk-kona-setup.c | ||
| clk-kona.c | ||
| clk-kona.h | ||
| clk-ns2.c | ||
| clk-nsp.c | ||
| clk-raspberrypi.c | ||
| clk-sr.c | ||