diff options
| author | Po-Wen Kao <[email protected]> | 2023-05-04 15:44:49 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2023-05-17 01:07:26 +0000 |
| commit | 5149452ca66289ef33d13897ee845a2f6f5b680f (patch) | |
| tree | 9beee6860bbf639609a330dfa74e6d3ffb1f2354 /lib/string_helpers.c | |
| parent | scsi: ufs: core: Fix I/O hang that occurs when BKOPS fails in W-LUN suspend (diff) | |
| download | kernel-5149452ca66289ef33d13897ee845a2f6f5b680f.tar.gz kernel-5149452ca66289ef33d13897ee845a2f6f5b680f.zip | |
scsi: ufs: core: Fix MCQ tag calculation
The transfer command descriptor is allocated in ufshcd_memory_alloc() and
referenced by the transfer request descriptor with stride size
sizeof_utp_transfer_cmd_desc() instead of sizeof(struct
utp_transfer_cmd_desc).
Consequently, computing tag by address offset should also refer to the
same stride.
Signed-off-by: Po-Wen Kao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Bart Van Assche <[email protected]>
Reviewed-by: Manivannan Sadhasivam <[email protected]>
Reviewed-by: Stanley Chu <[email protected]>
Reviewed-by: Ziqi Chen <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
