Re: [PATCH v2 1/4] extcon: usb-gpio: register extcon device before IRQ registration

2015-04-01 Thread Chanwoo Choi
Hi Roger, On 04/01/2015 08:58 PM, Roger Quadros wrote: > Hi Chanwoo, > > On 01/04/15 10:23, Robert Baldyga wrote: >> IRQ handler touches info->edev, so if interrupt occurs before extcon >> device initialization it can cause NULL pointer dereference. Doing extcon >> initialization before IRQ handl

Re: [PATCH v2 1/4] extcon: usb-gpio: register extcon device before IRQ registration

2015-04-01 Thread Roger Quadros
Hi Chanwoo, On 01/04/15 10:23, Robert Baldyga wrote: > 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: Robert Ba

[PATCH v2 1/4] extcon: usb-gpio: register extcon device before IRQ registration

2015-04-01 Thread Robert Baldyga
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: Robert Baldyga Acked-by: Roger Quadros --- drivers/extcon/extcon-usb-g