Messages in this thread | | | From | "Martin K. Petersen" <> | Subject | Re: [PATCH v2][next] scsi: lpfc: Avoid -Wstringop-overflow warning | Date | Wed, 14 Jun 2023 22:16:20 -0400 |
| |
On Thu, 01 Jun 2023 17:40:41 -0600, Gustavo A. R. Silva wrote:
> Prevent any potential integer wrapping issue, and avoid a > -Wstringop-overflow warning by using the check_mul_overflow() helper. > > drivers/scsi/lpfc/lpfc.h: > 837:#define LPFC_RAS_MIN_BUFF_POST_SIZE (256 * 1024) > > drivers/scsi/lpfc/lpfc_debugfs.c: > 2266 size = LPFC_RAS_MIN_BUFF_POST_SIZE * phba->cfg_ras_fwlog_buffsize; > > [...]
Applied to 6.5/scsi-queue, thanks!
[1/1] scsi: lpfc: Avoid -Wstringop-overflow warning https://git.kernel.org/mkp/scsi/c/a48e2c328c65
-- Martin K. Petersen Oracle Linux Engineering
| |