aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
diff options
context:
space:
mode:
authorPeter Chen <[email protected]>2018-06-12 09:53:01 +0800
committerGreg Kroah-Hartman <[email protected]>2018-06-25 21:43:35 +0800
commitd5a4f93511b7000183c0d528739b824752139f79 (patch)
tree95ecd4250882946da72f1527df6c1d14e26e0666 /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
parent9578bcd0bb487b8ecef4b7eee799aafb678aa441 (diff)
usb: typec: tcpm: fix logbuffer index is wrong if _tcpm_log is re-entered
The port->logbuffer_head may be wrong if the two processes enters _tcpm_log at the mostly same time. The 2nd process enters _tcpm_log before the 1st process update the index, then the 2nd process will not allocate logbuffer, when the 2nd process tries to use log buffer, the index has already updated by the 1st process, so it will get NULL pointer for updated logbuffer, the error message like below: tcpci 0-0050: Log buffer index 6 is NULL Cc: Heikki Krogerus <[email protected]> Cc: Guenter Roeck <[email protected]> Cc: Jun Li <[email protected]> Signed-off-by: Peter Chen <[email protected]> Reviewed-by: Heikki Krogerus <[email protected]> Cc: stable <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c')
0 files changed, 0 insertions, 0 deletions