diff options
author | Anirudh Rayabharam <mail@anirudhrb.com> | 2021-05-03 13:56:42 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-06-03 09:00:40 +0200 |
commit | 71723a796ab7881f491d663c6cd94b29be5fba50 (patch) | |
tree | f518ba1f07a1fc47521927f4b172f8e2a9a37449 /net | |
parent | b67c3d74adc3f7f832f57c170234bbe1fc69c87c (diff) |
net: fujitsu: fix potential null-ptr-deref
[ Upstream commit 52202be1cd996cde6e8969a128dc27ee45a7cb5e ]
In fmvj18x_get_hwinfo(), if ioremap fails there will be NULL pointer
deref. To fix this, check the return value of ioremap and return -1
to the caller in case of failure.
Cc: "David S. Miller" <davem@davemloft.net>
Acked-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Anirudh Rayabharam <mail@anirudhrb.com>
Link: https://lore.kernel.org/r/20210503115736.2104747-16-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions