linux/drivers/usb/common
Chunfeng Yun 8e8d910e9a usb: common: usb-conn-gpio: fix NULL pointer dereference of charger
[ Upstream commit 880287910b ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2021-07-20 16:05:39 +02:00
..
common.c USB: move usb debugfs directory creation to the usb common core 2019-06-06 08:59:19 +02:00
common.h USB: move usb debugfs directory creation to the usb common core 2019-06-06 08:59:19 +02:00
debug.c USB: Replace HTTP links with HTTPS ones 2020-07-21 13:41:57 +02:00
Kconfig usb: common: usb-conn-gpio: Register charger 2020-07-30 08:45:24 +02:00
led.c USB: move usb debugfs directory creation to the usb common core 2019-06-06 08:59:19 +02:00
Makefile usb: common: add USB GPIO based connection detection driver 2019-09-03 19:01:04 +02:00
ulpi.c usb: common: ulpi: Fix a few kerneldoc related issues 2020-07-03 09:34:11 +02:00
usb-conn-gpio.c usb: common: usb-conn-gpio: fix NULL pointer dereference of charger 2021-07-20 16:05:39 +02:00
usb-otg-fsm.c USB: common: Remove redundant license text 2017-11-04 11:55:39 +01:00