mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
net: dsa: vsc73xx: Add null pointer check to vsc73xx_gpio_probe
[ Upstream commit776dac5a66] devm_kasprintf() returns a pointer to dynamically allocated memory which can be NULL upon failure. Fixes:05bd97fc55("net: dsa: Add Vitesse VSC73xx DSA router driver") Signed-off-by: Kunwu Chan <chentao@kylinos.cn> Suggested-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://lore.kernel.org/r/20240111072018.75971-1-chentao@kylinos.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
4108b86e32
commit
ca65da8da1
1 changed files with 2 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue