mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
The kasprintf() function returns NULL on memory allocation failure, but
the code in plt_clk_register() was not checking this return value. If
kasprintf fails, init.name would be NULL and could cause NULL pointer
dereference when clkdev_hw_create() uses it.
Add proper error checking for the kasprintf() return value and return
ERR_PTR(-ENOMEM) on failure.
Fixes:
|
History
|
|
|---|---|---|
| .. | ||
| clk-cgu-pll.c | ||
| clk-cgu.c | ||
| clk-cgu.h | ||
| clk-fch.c | ||
| clk-lgm.c | ||
| clk-lpss-atom.c | ||
| clk-pmc-atom.c | ||
| Kconfig | ||
| Makefile | ||