diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2021-09-15 11:49:25 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-09-21 16:26:49 +0200 |
commit | 14651496a3de6807a17c310f63c894ea0c5d858e (patch) | |
tree | 1677baee467a73f81cbba17489ac713d430a22c2 /include/linux/overflow.h | |
parent | c03d36995222400c1bbbb7245a233c4304cfc257 (diff) | |
download | linux-14651496a3de6807a17c310f63c894ea0c5d858e.tar.gz linux-14651496a3de6807a17c310f63c894ea0c5d858e.tar.bz2 linux-14651496a3de6807a17c310f63c894ea0c5d858e.zip |
usb: musb: tusb6010: check return value after calling platform_get_resource()
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/20210915034925.2399823-1-yangyingliang@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions