Files
linux/drivers
Rameshwar Prasad Sahu f1601113dd ata: fixes kernel crash while tracing ata_eh_link_autopsy event
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")
Cc: stable@vger.kernel.org # v4.1+
2017-11-03 06:23:06 -07:00
..
2017-08-09 22:43:50 -07:00
2017-08-29 13:46:35 +02:00
2017-09-04 00:06:02 +02:00
2017-08-22 11:04:51 -07:00
2017-08-21 11:08:03 +02:00
2017-08-24 09:57:28 +02:00