[lvc-project] [PATCH v2] net: fealnx: fix possible 'card_idx' integer overflow in
Simon Horman
horms at kernel.org
Fri Dec 12 12:45:51 MSK 2025
On Thu, Dec 11, 2025 at 05:30:33PM +0000, Ilya Krutskih wrote:
> 'card_idx' can be overflowed when fealnx_init_one() will be called more than
> INT_MAX times. Check before incremention is required.
>
> Fixes: 15c037d6423e ("fealnx: Move the Myson driver")
I believe that the commit cited moved rather than added the code
which seems to have been present since the beginning of git history.
In that case the convention is to use this tag:
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Cc: stable at vger.kernel.org # v5.10+
> Signed-off-by: Ilya Krutskih <devsec at tpz.ru>
> ---
> drivers/net/ethernet/fealnx.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
Please allow 24h to pass, to allow review, before posting an
updated patch.
Link: https://docs.kernel.org/process/maintainer-netdev.html
More information about the lvc-project
mailing list