Skip to content
Commit 7740fc52 authored by Lejun Zhu's avatar Lejun Zhu Committed by Dmitry Torokhov
Browse files

Input: soc_button_array - fix a crash during rmmod



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: default avatarLejun Zhu <lejun.zhu@linux.intel.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 46a2986e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment