extcon: usb-gpio: register extcon device before IRQ registration
IRQ handler touches info->edev, so if interrupt occurs before extcon device initialization it can cause NULL pointer dereference. Doing extcon initialization before IRQ handler registration fixes this problem. Signed-off-by: NRobert Baldyga <r.baldyga@samsung.com> Acked-by: NRoger Quadros <rogerq@ti.com> Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
Showing
想要评论请 注册 或 登录