diff options
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | 2021-05-19 08:39:44 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-21 14:09:54 +0200 |
commit | 880287910b1892ed2cb38977893b947382a09d21 (patch) | |
tree | 3a58ddb30cd85befe6da1e9474d990d5d2038d3b /virt | |
parent | dt-bindings: usb: Add H616 compatible string (diff) | |
download | linux-880287910b1892ed2cb38977893b947382a09d21.tar.xz linux-880287910b1892ed2cb38977893b947382a09d21.zip |
usb: common: usb-conn-gpio: fix NULL pointer dereference of charger
When power on system with OTG cable, IDDIG's interrupt arises before
the charger registration, it will cause a NULL pointer dereference,
fix the issue by registering the power supply before requesting
IDDIG/VBUS irq.
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/1621406386-18838-1-git-send-email-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions