pinctrl: sunplus: Add check for kmalloc
authorWells Lu <wellslutw@gmail.com>
Sun, 28 May 2023 12:34:37 +0000 (20:34 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 30 May 2023 11:47:20 +0000 (13:47 +0200)
commita5961bed5429cf1134d7f539b4ed60317012f84d
tree4294235f94af8a9659a85c88316065b8f6f7ed26
parentd8572531736f2182b5587eab1b32a883be05b4e0
pinctrl: sunplus: Add check for kmalloc

Fix Smatch static checker warning:
potential null dereference 'configs'. (kmalloc returns null)

Fixes: aa74c44be19c ("pinctrl: Add driver for Sunplus SP7021")
Signed-off-by: Wells Lu <wellslutw@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/1685277277-12209-1-git-send-email-wellslutw@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sunplus/sppctl.c