login
Header Space

 
 

Re: [PATCH] libata: Register for dock events when the drive is inside a dock station

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Tejun Heo <htejun@...>, Jeff Garzik <jeff@...>, <linux-kernel@...>, <linux-ide@...>, Kristen Carlson Accardi <kristen.c.accardi@...>
Date: Thursday, February 28, 2008 - 7:36 pm

On Thu 28. Feb - 19:32:43, Holger Macht wrote:

So once again...

After applying your patch, I got the OOPS seen in attachment
'oops-undock-1'. After changing the following, which is hopefully
correct...

--- ../orig/linux-2.6.24.3/drivers/ata/libata-acpi.c	2008-02-29 00:31:44.000000000 +0100
+++ drivers/ata/libata-acpi.c	2008-02-29 00:32:26.000000000 +0100
@@ -123,7 +123,7 @@
 {
 	char event_string[12];
 	char *envp[] = { event_string, NULL };
-	struct ata_eh_info *ehi = &ap->link.eh_info;
+	struct ata_eh_info *ehi;
 	struct kobject *kobj = NULL;
 	int wait = 0;
 	unsigned long flags;
@@ -131,6 +131,8 @@
 	if (!ap)
 		ap = dev->link->ap;
 
+	ehi = &ap->link.eh_info;
+
 	spin_lock_irqsave(ap->lock, flags);
 
 	switch (event) {


...I got both an oops when docking (attachments oops-dock) and when undocking
(attachment oops-undock2).

Regards,
	Holger
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] libata: Register for dock events when the drive ..., Holger Macht, (Thu Feb 28, 7:36 pm)
speck-geostationary