Files
linux/drivers/ata
Rameshwar Prasad Sahu 2946ebe90e ata: fixes kernel crash while tracing ata_eh_link_autopsy event
commit f1601113dd upstream.

When tracing ata link error event, the kernel crashes when the disk is
removed due to NULL pointer access by trace_ata_eh_link_autopsy API.
This occurs as the dev is NULL when the disk disappeared. This patch
fixes this crash by calling trace_ata_eh_link_autopsy only if "dev"
is not NULL.

v2 changes:
 Removed direct passing "link" pointer instead of "dev" in trace API.

Signed-off-by: Rameshwar Prasad Sahu <rsahu@apm.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Fixes: 255c03d15a ("libata: Add tracepoints")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-30 08:39:04 +00:00
..
2017-06-14 15:06:00 +02:00
2016-09-06 12:38:17 -04:00
2017-11-21 09:23:22 +01:00
2016-09-06 12:38:17 -04:00
2017-02-09 08:08:27 +01:00
2014-03-11 08:30:53 -04:00
2015-09-10 17:02:04 -04:00
2008-01-23 05:24:15 -05:00
2015-11-30 10:02:49 -05:00
2007-07-02 10:17:42 -04:00