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: aa74c44b ("pinctrl: Add driver for Sunplus SP7021") Reported-by: NHacash Robot <hacashRobot@santino.com> Signed-off-by: NWilliam Dean <williamsukatube@gmail.com> Link: https://lore.kernel.org/r/20220710154822.2610801-1-williamsukatube@163.comSigned-off-by: NLinus Walleij <linus.walleij@linaro.org>
Showing
想要评论请 注册 或 登录