diff options
author | Kunwu Chan <chentao@kylinos.cn> | 2024-01-11 10:20:18 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-01-26 01:33:38 +0300 |
commit | 368770bfd05fcb16e5f3ee0857176ccea00e462b (patch) | |
tree | 774977e16e49ec19534e33229296601fd05cb0fa /net | |
parent | 83fabba372ea78f9d0caaf15fe0b10b1704d84e0 (diff) | |
download | linux-368770bfd05fcb16e5f3ee0857176ccea00e462b.tar.xz |
net: dsa: vsc73xx: Add null pointer check to vsc73xx_gpio_probe
[ Upstream commit 776dac5a662774f07a876b650ba578d0a62d20db ]
devm_kasprintf() returns a pointer to dynamically allocated memory
which can be NULL upon failure.
Fixes: 05bd97fc559d ("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>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions