commit | 9bb8c4e4c902e16accbc11b55748114d6452ad46 | [log] [tgz] |
---|---|---|
author | Yang Yingliang <yangyingliang@huawei.com> | Tue Aug 31 16:40:18 2021 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Sep 22 11:45:32 2021 +0200 |
tree | 11e62839a929aaf180648e163d0f5d81f00e1a53 | |
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>