input: sensors: fix the irq not free issue when apds9930 probe fails
The irq is not freed when the apds9930 sensor chip is not successfully
probed. The freed memory access in the interrupt handler cause a
crash. Thus fix this issue by calling free_irq when probe fails.
Change-Id: Ia584199d35ec09c04fb5632183443ecf1c747f74
Signed-off-by:
Oliver Wang <mengmeng@codeaurora.org>
Loading
Please register or sign in to comment