]> git.hungrycats.org Git - linux/commit
pinctrl: sunplus: Add check for kmalloc
authorWells Lu <wellslutw@gmail.com>
Sun, 28 May 2023 12:34:37 +0000 (20:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jul 2023 17:39:46 +0000 (19:39 +0200)
commitc84eedd2a9dca8f110ec0098978810e6e16f560e
treed35a7df7916ee44f0260c3fb0efba64a07616a02
parent3e18f353c586e8ce4bfaf5f9ef2ca1dda419b728
pinctrl: sunplus: Add check for kmalloc

[ Upstream commit a5961bed5429cf1134d7f539b4ed60317012f84d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/sunplus/sppctl.c