commit | 804de302ada3544699c5f48c5314b249af76faa3 | [log] [tgz] |
---|---|---|
author | Zhen Ni <nizhen@uniontech.com> | Wed Mar 02 11:37:16 2022 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Jun 14 16:52:39 2022 +0200 |
tree | 1ea4ce7afbc36632da5d03ee230d1c875c77a628 | |
parent | 4681129fda9e8555392eaaadb239ec6a6e2b3e12 [diff] |
USB: host: isp116x: check return value after calling platform_get_resource() [ Upstream commit 134a3408c2d3f7e23eb0e4556e0a2d9f36c2614e ] It will cause null-ptr-deref if platform_get_resource() returns NULL, we need check the return value. Signed-off-by: Zhen Ni <nizhen@uniontech.com> Link: https://lore.kernel.org/r/20220302033716.31272-1-nizhen@uniontech.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>