diff options
| author | Rameshwar Prasad Sahu <rsahu@apm.com> | 2017-11-02 16:31:07 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-30 08:37:21 +0000 |
| commit | 189bc689547a57100cb0c5d0e689a8555e98b547 (patch) | |
| tree | 21cccb2b5b5e05772ef7e288ae2ed1425f5a00c7 /tools/perf/scripts/python | |
| parent | f1be21021099046fbe288ae957cd75ab1c7a0daf (diff) | |
ata: fixes kernel crash while tracing ata_eh_link_autopsy event
commit f1601113ddc0339a745e702f4fb1ca37d4875e65 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: 255c03d15a29 ("libata: Add tracepoints")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
