mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 01:41:39 +00:00
![]() Because of the possible failure of the allocation, data->domains might
be NULL pointer and will cause the dereference of the NULL pointer
later.
Therefore, it might be better to check it and directly return -ENOMEM
without releasing data manually if fails, because the comment of the
devm_kmalloc() says "Memory allocated with this function is
automatically freed on driver detach.".
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
pinctrl-mt7620.c | ||
pinctrl-mt7621.c | ||
pinctrl-ralink.c | ||
pinctrl-ralink.h | ||
pinctrl-rt305x.c | ||
pinctrl-rt2880.c | ||
pinctrl-rt3883.c |