commit | ce1307ec621bafc1f8263935179d301359c99585 | [log] [tgz] |
---|---|---|
author | Yang Yingliang <yangyingliang@huawei.com> | Mon Jun 07 22:36:02 2021 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Jul 19 09:44:47 2021 +0200 |
tree | e047bcfa62b750429913b97fee03bc45131b0d9f | |
parent | 49b3a7f38a9b359c9ac245d75ec2f072bf766f47 [diff] |
net: mvpp2: check return value after calling platform_get_resource() [ Upstream commit 0bb51a3a385790a4be20085494cf78f70dadf646 ] 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>