Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f1601113 authored by Rameshwar Prasad Sahu's avatar Rameshwar Prasad Sahu Committed by Tejun Heo
Browse files

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: default avatarRameshwar Prasad Sahu <rsahu@apm.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Fixes: 255c03d1 ("libata: Add tracepoints")
Cc: stable@vger.kernel.org # v4.1+
parent e00b19e2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment