# \[PATCH\] drivers/input/serio/hp\_sdc.c: fix crash when removing hp\_sdc module

- From: Helge Deller \<deller@gmx.de\>
- Date: 2008-12-26 20:24:31 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2008/12/8910551
- Thread: https://ratatoskr.run/linux-input/2008/12/8910551/t.md

```text
On parisc machines, which don't have HIL, removing the hp_sdc module
panics the kernel. Fix this by returning early in hp_sdc_exit() if no HP
SDC controller was found.

Add functionality to probe for the hp_sdc_mlc kernel module (which takes
care of the upper layer HIL functionality on parisc) after two seconds.
This is needed to get all the other HIL drivers (keyboard / mouse/ ..)
drivers automatically loaded by udev later as well.

Signed-off-by: Helge Deller <deller@gmx.de>

 hp_sdc.c |   24 +++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

```

## Attachments

- [hp\_sdc.patch](https://ratatoskr.run/linux-input/2008/12/8910551/attachment/0) (text/x-patch, 1783 bytes)
