diff mbox

[BUG,RFC] PCI: kernel oops on access to pci proc file while hot-removal

Message ID 4C21B1EA.6090307@jp.fujitsu.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Kenji Kaneshige June 23, 2010, 7:04 a.m. UTC
None
diff mbox

Patch

Index: linux-2.6.34/drivers/pci/proc.c
===================================================================
--- linux-2.6.34.orig/drivers/pci/proc.c
+++ linux-2.6.34/drivers/pci/proc.c
@@ -431,8 +431,6 @@  int pci_proc_detach_device(struct pci_de
 	struct proc_dir_entry *e;
 
 	if ((e = dev->procent)) {
-		if (atomic_read(&e->count) > 1)
-			return -EBUSY;
 		remove_proc_entry(e->name, dev->bus->procdir);
 		dev->procent = NULL;
 	}