Re: [PATCH] ata: fixes kernel crash while tracing ata_eh_link_autopsy event

From
Tejun Heo <tj@kernel.org>
Date
2017-10-25 14:54:54
Also in
linux-arm-kernel, linux-ide, linux-scsi
Reply to
Rameshwar Prasad Sahu, 2017-10-25
Hello,

On Wed, Oct 25, 2017 at 03:52:56PM +0530, Rameshwar Prasad Sahu wrote:
quoted hunk ↗ jump to hunk
@@ -288,8 +289,8 @@
 	),

 	TP_fast_assign(
-		__entry->ata_port	= dev->link->ap->print_id;
-		__entry->ata_dev	= dev->link->pmp + dev->devno;
+		__entry->ata_port	= link->ap->print_id;
+		__entry->ata_dev	= link->pmp + link->device->devno;
The above is wrong if there are multiple devices on the link.  It
probably should take both link and dev and use dev iff it's not NULL.

Thanks.

-- 
tejun
Thread (2 messages) 2 messages, 2 authors, last reply 2017-10-25
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help