Repository navigation
Commit 0b0595b
Staging: Panel: prevent driver from calling misc_deregister twice on same ressource
This patch prevents the driver from calling misc_deregister twice on the same
ressouce when unloading the driver.
Unloading the driver without this patch results in a Kernel BUG like this:
Panel driver version 0.9.5 registered on parport0 (io=0x378).
BUG: unable to handle kernel paging request at 0000000000100108
IP: [<ffffffff803c02ee>] misc_deregister+0x2d/0x90
PGD 6caff067 PUD 762b7067 PMD 0
Oops: 0002 [raspberrypi#1] PREEMPT SMP
last sysfs file: /sys/devices/platform/w83627hf.656/in8_input
...
This patch fixes this issue, although maybe not in the best way possible :)
linux version v2.6.32-rc1 - linus git tree, Di 29. Sep 01:10:18 CEST 2009
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>1 parent 9fcfeab commit 0b0595b
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2071 | 2071 | | |
2072 | 2072 | | |
2073 | 2073 | | |
2074 | | - | |
| 2074 | + | |
2075 | 2075 | | |
| 2076 | + | |
| 2077 | + | |
2076 | 2078 | | |
2077 | | - | |
| 2079 | + | |
2078 | 2080 | | |
| 2081 | + | |
| 2082 | + | |
2079 | 2083 | | |
2080 | 2084 | | |
2081 | 2085 | | |
| |||
2211 | 2215 | | |
2212 | 2216 | | |
2213 | 2217 | | |
2214 | | - | |
| 2218 | + | |
2215 | 2219 | | |
| 2220 | + | |
| 2221 | + | |
2216 | 2222 | | |
2217 | 2223 | | |
2218 | 2224 | | |
2219 | 2225 | | |
2220 | 2226 | | |
| 2227 | + | |
2221 | 2228 | | |
2222 | 2229 | | |
2223 | 2230 | | |
| |||
0 commit comments