mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02: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:
|
||
|---|---|---|
| .. | ||
| 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 | ||