Revision 0b0595bfdaae1f19a052ceee2a63c307793b9c22 authored by Peter Huewe on 28 September 2009, 23:22:40 UTC, committed by Greg Kroah-Hartman on 30 October 2009, 21:47:43 UTC
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 [#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
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 2.5 KB |
Kconfig.iosched | -rw-r--r-- | 1.9 KB |
Makefile | -rw-r--r-- | 582 bytes |
as-iosched.c | -rw-r--r-- | 38.8 KB |
blk-barrier.c | -rw-r--r-- | 10.6 KB |
blk-core.c | -rw-r--r-- | 66.9 KB |
blk-exec.c | -rw-r--r-- | 2.6 KB |
blk-integrity.c | -rw-r--r-- | 9.9 KB |
blk-ioc.c | -rw-r--r-- | 4.0 KB |
blk-iopoll.c | -rw-r--r-- | 5.9 KB |
blk-map.c | -rw-r--r-- | 8.1 KB |
blk-merge.c | -rw-r--r-- | 10.8 KB |
blk-settings.c | -rw-r--r-- | 22.7 KB |
blk-softirq.c | -rw-r--r-- | 4.1 KB |
blk-sysfs.c | -rw-r--r-- | 11.9 KB |
blk-tag.c | -rw-r--r-- | 9.9 KB |
blk-timeout.c | -rw-r--r-- | 5.7 KB |
blk.h | -rw-r--r-- | 4.5 KB |
bsg.c | -rw-r--r-- | 23.4 KB |
cfq-iosched.c | -rw-r--r-- | 65.4 KB |
compat_ioctl.c | -rw-r--r-- | 22.0 KB |
deadline-iosched.c | -rw-r--r-- | 11.4 KB |
elevator.c | -rw-r--r-- | 24.4 KB |
genhd.c | -rw-r--r-- | 29.5 KB |
ioctl.c | -rw-r--r-- | 8.1 KB |
noop-iosched.c | -rw-r--r-- | 2.6 KB |
scsi_ioctl.c | -rw-r--r-- | 18.0 KB |
Computing file changes ...