From mboxrd@z Thu Jan 1 00:00:00 1970 From: rsahu@apm.com (Rameshwar Sahu) Date: Thu, 2 Nov 2017 15:27:25 +0530 Subject: [PATCH] ata: fixes kernel crash while tracing ata_eh_link_autopsy event In-Reply-To: <20171101143031.GL3252168@devbig577.frc2.facebook.com> References: <1508926976-11467-1-git-send-email-rsahu@apm.com> <20171025145450.GA59538@devbig577.frc2.facebook.com> <20171101143031.GL3252168@devbig577.frc2.facebook.com> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, Nov 1, 2017 at 8:00 PM, Tejun Heo wrote: > Hello, > > On Tue, Oct 31, 2017 at 08:52:44PM +0530, Rameshwar Sahu wrote: >> > probably should take both link and dev and use dev iff it's not NULL. >> > >> >> Instead of this would it be better to call trace_ata_eh_link_autopsy() if >> dev is not NULL from ata error handler ?? > > Oh yeah, that'd work too and be probably better. I will post another version with this fix. > > Thanks. > > -- > tejun