[lvc-project] [PATCH] net: fealnx: fixed possible out of band acces to an array

I Viswanath viswanathiyyappan at gmail.com
Tue Nov 11 19:22:50 MSK 2025


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




More information about the lvc-project mailing list