commit | 0a244be95bca64fabc89e3358674bfa04b17d314 | [log] [tgz] |
---|---|---|
author | Yang Yingliang <yangyingliang@huawei.com> | Thu Jun 10 16:02:43 2021 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Jul 19 09:44:49 2021 +0200 |
tree | d24a6a4a51bb252cee293c1c0893faf4e0bd6565 | |
parent | 378c156f9dd0f0e758513c38e33311ae3e5540b2 [diff] |
fjes: check return value after calling platform_get_resource() [ Upstream commit f18c11812c949553d2b2481ecaa274dd51bed1e7 ] 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>