[PATCH] mtd: lpddr_cmds: Added literal suffix

Miquel Raynal miquel.raynal at bootlin.com
Mon Sep 11 08:56:48 PDT 2023


On Thu, 2023-08-24 at 13:02:15 UTC, Denis Arefev wrote:
> The value of an arithmetic expression
> 1 << lpddr->qinfo->DevSizeShift is subject to overflow
> due to a failure to cast operands to a larger data
> type before performing arithmetic
> 
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
> 
> Signed-off-by: Denis Arefev <arefev at swemel.ru>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.

Miquel



More information about the linux-mtd mailing list