mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-19 17:14:40 +08:00
c3b821e8e4
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 |