Skip to content

Commit

Permalink
Input: soc_button_array - fix a crash during rmmod
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
  • Loading branch information
Lejun Zhu authored and dtor committed Apr 23, 2014
1 parent 46a2986 commit 7740fc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/input/misc/soc_button_array.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ static int soc_button_pnp_probe(struct pnp_dev *pdev,
soc_button_remove(pdev);
return error;
}
continue;
}

priv->children[i] = pd;
Expand Down

0 comments on commit 7740fc5

Please sign in to comment.