diff options
author | 2019-12-24 14:02:46 -0800 | |
---|---|---|
committer | 2020-01-02 21:57:44 -0500 | |
commit | eacf36f5bebde5089dddb3d5bfcbeab530b01f8a (patch) | |
tree | 92f1ea40cc149f87bafe7906330140ad44aaa709 /drivers/scsi/mpt3sas/mpi/mpi2_image.h | |
parent | scsi: ufs: Make ufshcd_prepare_utp_scsi_cmd_upiu() easier to read (diff) | |
download | linux-dev-eacf36f5bebde5089dddb3d5bfcbeab530b01f8a.tar.xz linux-dev-eacf36f5bebde5089dddb3d5bfcbeab530b01f8a.zip |
scsi: ufs: Fix a race condition in the tracing code
Starting execution of a command before tracing a command may cause the
completion handler to free data while it is being traced. Fix this race by
tracing a command before it is submitted.
Cc: Bean Huo <beanhuo@micron.com>
Cc: Can Guo <cang@codeaurora.org>
Cc: Avri Altman <avri.altman@wdc.com>
Cc: Stanley Chu <stanley.chu@mediatek.com>
Cc: Tomas Winkler <tomas.winkler@intel.com>
Link: https://lore.kernel.org/r/20191224220248.30138-5-bvanassche@acm.org
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/mpt3sas/mpi/mpi2_image.h')
0 files changed, 0 insertions, 0 deletions