From: Jarkko Nikula Date: Tue, 16 Sep 2014 13:23:15 +0000 (+0300) Subject: gpio: Fix potential NULL handler data in chained irqchip handler X-Git-Tag: fixes-for-v3.18-merge-window~69^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=324b0398781e7afb846378dd2d8a4374faaf236b;p=pandora-kernel.git gpio: Fix potential NULL handler data in chained irqchip handler There is possibility with misconfigured pins that interrupt occurs instantly after setting irq_set_chained_handler() in gpiochip_set_chained_irqchip(). Now if handler gets called before irq_set_handler_data() the handler gets NULL handler data. Fix this by moving irq_set_handler_data() call before irq_set_chained_handler() in gpiochip_set_chained_irqchip(). Cc: Stable # 3.15+ Reviewed-by: Alexandre Courbot Signed-off-by: Jarkko Nikula --- Reading git-diff-tree failed