Re: [PATCH] soc_button_array: fix a crash during rmmod

2014-04-22 Thread Dmitry Torokhov
On Tue, Apr 22, 2014 at 02:38:39PM +0800, Zhu, Lejun wrote: > When the system has zero or one button available, trying to rmmod > soc_button_array will cause crash. Fix this by properly handling -ENODEV > in probe(). > > Signed-off-by: Lejun Zhu Applied, thank you. > --- > drivers/input/misc/s

[PATCH] soc_button_array: fix a crash during rmmod

2014-04-21 Thread Zhu, Lejun
When the system has zero or one button available, trying to rmmod soc_button_array will cause crash. Fix this by properly handling -ENODEV in probe(). Signed-off-by: Lejun Zhu --- drivers/input/misc/soc_button_array.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/misc/soc_but