mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-02-03 09:34:42 +00:00
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: Lejun Zhu <lejun.zhu@linux.intel.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
46a2986ebb
commit
7740fc5210
@ -169,6 +169,7 @@ static int soc_button_pnp_probe(struct pnp_dev *pdev,
|
|||||||
soc_button_remove(pdev);
|
soc_button_remove(pdev);
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
priv->children[i] = pd;
|
priv->children[i] = pd;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user