diff options
| author | Bart Van Assche <[email protected]> | 2024-04-10 00:07:45 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2024-04-25 01:01:40 +0000 |
| commit | 3c5d0dce8ce0a2781ac306b9ad1492b005ecbab5 (patch) | |
| tree | 7bff2514fcd9601139b9f7515c12d3c6e7d4b722 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
| parent | scsi: qedf: Make qedf_execute_tmf() non-preemptible (diff) | |
| download | kernel-3c5d0dce8ce0a2781ac306b9ad1492b005ecbab5.tar.gz kernel-3c5d0dce8ce0a2781ac306b9ad1492b005ecbab5.zip | |
scsi: ufs: core: mcq: Fix ufshcd_mcq_sqe_search()
Fix the calculation of the utrd pointer. This patch addresses the following
Coverity complaint:
CID 1538170: (#1 of 1): Extra sizeof expression (SIZEOF_MISMATCH)
suspicious_pointer_arithmetic: Adding sq_head_slot * 32UL /* sizeof (struct
utp_transfer_req_desc) */ to pointer hwq->sqe_base_addr of type struct
utp_transfer_req_desc * is suspicious because adding an integral value to
this pointer automatically scales that value by the size, 32 bytes, of the
pointed-to type, struct utp_transfer_req_desc. Most likely, the
multiplication by sizeof (struct utp_transfer_req_desc) in this expression
is extraneous and should be eliminated.
Cc: Bao D. Nguyen <[email protected]>
Cc: Stanley Chu <[email protected]>
Cc: Can Guo <[email protected]>
Fixes: 8d7290348992 ("scsi: ufs: mcq: Add supporting functions for MCQ abort")
Signed-off-by: Bart Van Assche <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions
