Re: [PATCH] net: fealnx: fixed possible out of band acces to an array

From: I Viswanath

Date: Tue Nov 11 2025 - 11:23:01 EST



On 10/11/25 19:14, Ilya Krutskih wrote:
fixed possible out of band access to an array
If the fealnx_init_one() function is called more than MAX_UNITS times
or card_idx is less than zero

The code already validates against the >= MAX_UNITS case and card_idx
can never be less than zero at those points under normal circumstances, making
this patch unnecessary.

However, card_idx will overflow with enough calls and that is something
that should probably be fixed