William Dean acf50233fc pinctrl: sunplus: Add check for kcalloc
As the potential failure of the kcalloc(),
it should be better to check it in order to
avoid the dereference of the NULL pointer.

Fixes: aa74c44be19c8 ("pinctrl: Add driver for Sunplus SP7021")
Reported-by: Hacash Robot <hacashRobot@santino.com>
Signed-off-by: William Dean <williamsukatube@gmail.com>
Link: https://lore.kernel.org/r/20220710154822.2610801-1-williamsukatube@163.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2022-07-11 15:04:19 +02:00
..
2022-05-04 23:15:21 +02:00
2022-05-04 23:15:21 +02:00
2022-05-26 14:51:38 -07:00
2022-01-30 02:55:41 +01:00
2021-09-17 00:48:45 +02:00
2021-10-14 01:22:58 +02:00
2022-02-11 02:19:47 +01:00
2020-04-28 13:26:49 +02:00
2022-05-01 23:25:10 +02:00
2020-12-15 12:13:37 -08:00