Re: [PATCH] scsi/ufs: Fix ufshcd_mcq_sqe_search()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 09 Apr 2024 17:07:45 -0700, Bart Van Assche wrote:

> 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.
> 
> [...]

Applied to 6.10/scsi-queue, thanks!

[1/1] scsi/ufs: Fix ufshcd_mcq_sqe_search()
      https://git.kernel.org/mkp/scsi/c/3c5d0dce8ce0

-- 
Martin K. Petersen	Oracle Linux Engineering




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux