Re: [PATCH v2] net: fealnx: fix possible 'card_idx' integer overflow in

From: Simon Horman

Date: Fri Dec 12 2025 - 04:45:56 EST


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@xxxxxxxxxxxxxxx # v5.10+
> Signed-off-by: Ilya Krutskih <devsec@xxxxxx>
> ---
> 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