diff options
| author | Yang Yingliang <yangyingliang@huawei.com> | 2021-08-31 16:42:36 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-10-09 14:11:03 +0200 |
| commit | a7182993dd8e09f96839ddc3ac54f9b37370d282 (patch) | |
| tree | d5611fab0f5938e1abd7c572db43c6ae06e33c1d /tools/testing | |
| parent | 10fff12be53b0b90860bcafcecf779eb985df5c0 (diff) | |
usb: dwc2: check return value after calling platform_get_resource()
[ Upstream commit 856e6e8e0f9300befa87dde09edb578555c99a82 ]
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>
Link: https://lore.kernel.org/r/20210831084236.1359677-1-yangyingliang@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions
