aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorRameshwar Prasad Sahu <[email protected]>2017-11-02 11:01:07 +0000
committerTejun Heo <[email protected]>2017-11-03 13:23:06 +0000
commitf1601113ddc0339a745e702f4fb1ca37d4875e65 (patch)
treeeb175e33705391c9203cf1b060441ae3531ee3b2 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parentata: pata_pdc2027x: Fix space before '[' error. (diff)
downloadkernel-f1601113ddc0339a745e702f4fb1ca37d4875e65.tar.gz
kernel-f1601113ddc0339a745e702f4fb1ca37d4875e65.zip
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 <[email protected]> Signed-off-by: Tejun Heo <[email protected]> Fixes: 255c03d15a29 ("libata: Add tracepoints") Cc: [email protected] # v4.1+
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions