2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 12:43:55 +08:00
linux-next/drivers/staging
Peter Huewe 0b0595bfda 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 [#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>
2009-10-30 14:47:43 -07:00
..
altpciechdma Staging: altpciechdma: 64bit type warning fix 2009-09-15 12:02:26 -07:00
android staging: Make some structures static 2009-09-15 12:02:24 -07:00
asus_oled Staging: asus_oled: Cleaned up checkpatch issues. 2009-09-15 12:02:33 -07:00
b3dfg Staging: b3dfg: fix sched.h build breakage 2009-10-14 14:14:36 -07:00
comedi Staging: comedi: fix sched.h build breakage 2009-10-14 14:14:36 -07:00
cx25821 V4L/DVB (12851): cx25821/Makefile: Cleanup 2009-09-19 00:13:35 -03:00
dream Staging: dream: introduce missing kfree 2009-09-15 12:02:34 -07:00
dst Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block 2009-10-04 12:39:14 -07:00
echo Staging: echo: coding style cleanups 2009-09-15 12:02:16 -07:00
et131x Staging: et131x: Fix the add_10bit macro 2009-10-14 14:14:39 -07:00
frontier Staging: remove unused #include <linux/version.h>'s 2009-06-19 11:00:36 -07:00
go7007 V4L/DVB (13037): go7007: Revert compatibility code added at the wrong place 2009-09-22 21:53:26 -03:00
hv Staging: hv: fix oops in vmbus - missing #include 2009-10-30 14:47:43 -07:00
iio staging: Complete sched.h removal from interrupt.h 2009-10-14 14:14:37 -07:00
line6 Staging: line6: ffzb returns an unsigned integer 2009-09-15 12:02:34 -07:00
mimio Staging: mimio: depends on INPUT 2009-04-03 14:53:29 -07:00
octeon MIPS: Octeon: False positive timeout 2009-09-17 20:07:41 +02:00
otus staging: Make some structures static 2009-09-15 12:02:24 -07:00
p9auth Staging: p9auth: a few fixes 2009-10-09 13:47:24 -07:00
panel Staging: Panel: prevent driver from calling misc_deregister twice on same ressource 2009-10-30 14:47:43 -07:00
phison Staging: phison: depends on PCI 2009-04-03 14:53:40 -07:00
poch Staging: poch: fix sched.h build breakage 2009-10-14 14:14:36 -07:00
pohmelfs pohmelfs/connector: Disallow unpliviged users to configure pohmelfs 2009-10-02 10:54:15 -07:00
quatech_usb2 Staging: quatech_usb2: Improvements to set_termios method 2009-09-15 12:01:36 -07:00
rar Staging: rar/sep: Don't use random VENDOR_ID macros but the proper names 2009-09-15 12:02:12 -07:00
rt2860 Staging: rt2860sta: prevent a panic when disabling when associated 2009-10-14 14:14:40 -07:00
rt2870 Staging: rt2870: remove old firmware 2009-09-15 12:02:23 -07:00
rt3070 Staging: remove no longer needed rt3070 driver 2009-09-15 12:02:23 -07:00
rt3090 staging: more sched.h fixes 2009-10-14 14:14:40 -07:00
rtl8187se Staging: rtl8187se: Fix comment-out-typo 2009-09-15 12:02:17 -07:00
rtl8192e Staging: rtl8192e: Add #include <linux/vmalloc.h> 2009-10-09 13:47:24 -07:00
rtl8192su Staging: rtl8192su: add linux/vmalloc.h 2009-09-15 12:02:17 -07:00
sep staging: Complete sched.h removal from interrupt.h 2009-10-14 14:14:37 -07:00
serqt_usb2 Staging: serqt_usb2: fix qt_open parameters 2009-09-15 12:02:06 -07:00
slicoss Staging: ARRAY_SIZE changes 2009-09-15 12:02:06 -07:00
stlc45xx spi: prefix modalias with "spi:" 2009-09-23 07:39:43 -07:00
udlfb Staging: udlfb: fix printk format warning 2009-09-15 12:02:06 -07:00
usbip Staging: usb-ip: vhci_hdc:Fix the returned error value 2009-09-15 12:02:05 -07:00
vme Staging: vme: fix sched.h build breakage 2009-10-14 14:14:36 -07:00
vt6655 Staging: vt665x: fix built-in compiling 2009-09-15 12:02:34 -07:00
vt6656 Staging: vt665x: fix built-in compiling 2009-09-15 12:02:34 -07:00
winbond Staging: winbond: implement prepare_multicast and fix API usage 2009-10-09 13:47:24 -07:00
wlan-ng Staging: wlan-ng: remove dependency on WIRELESS_EXT version 2009-09-15 12:01:37 -07:00
Kconfig Staging: remove cowloop driver 2009-10-09 13:47:23 -07:00
Makefile Staging: remove cowloop driver 2009-10-09 13:47:23 -07:00
staging.c