[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <173920599431.1898669.15140437216630874599.b4-ty@kernel.org>
Date: Mon, 10 Feb 2025 16:46:34 +0000
From: Lee Jones <lee@...nel.org>
To: Lee Jones <lee@...nel.org>,
Nikita Zhandarovich <n.zhandarovich@...tech.ru>
Cc: linux-kernel@...r.kernel.org, lvc-project@...uxtesting.org
Subject: Re: (subset) [PATCH] mfd: sm501: switch to BIT() to mitigate
integer overflows
On Wed, 15 Jan 2025 09:12:06 -0800, Nikita Zhandarovich wrote:
> If offset end up being high enough, right hand expression in functions
> like sm501_gpio_set() shifted left for that number of bits, may
> not fit in int type.
>
> Just in case, fix that by using BIT() both as an option safe from
> overflow issues and to make this step look similar to other gpio
> drivers.
>
> [...]
Applied, thanks!
[1/1] mfd: sm501: switch to BIT() to mitigate integer overflows
commit: 987c19d733bb099daf9f13e3c84947a611219797
--
Lee Jones [李琼斯]
Powered by blists - more mailing lists