diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2021-08-31 16:40:18 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-09-22 11:45:32 +0200 |
commit | 9bb8c4e4c902e16accbc11b55748114d6452ad46 (patch) | |
tree | 11e62839a929aaf180648e163d0f5d81f00e1a53 /arch | |
parent | a98d38fca3e49656a35e19d576664f13b7760d7d (diff) |
net: w5100: check return value after calling platform_get_resource()
[ Upstream commit a39ff4a47f3e1da3b036817ef436b1a9be10783a ]
It will cause null-ptr-deref if platform_get_resource() returns NULL,
we need check the return value.
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions