On 10/15/2025 9:54 AM, Youssef Samir wrote: > From: Zack McKevitt <[email protected]> > > Use check_add_overflow instead of size_add in sahara when > 64b types are being added to ensure compatibility with 32b > systems. The size_add function parameters are of size_t, so > 64b data types may be truncated when cast to size_t on 32b > systems. When using check_add_overflow, no type casts are made, > making it a more portable option. > > Signed-off-by: Zack McKevitt <[email protected]> > Signed-off-by: Youssef Samir <[email protected]> > Reviewed-by: Jeff Hugo <[email protected]> > --- > Changes in V3: > - Remove the min() to min_t() changes > - Link to V2: > https://lore.kernel.org/all/[email protected] > > Changes in V2: > - Use explicit casts with check_*_overflow() calls > - Replace min() with min_t() > - Link to V1: > https://lore.kernel.org/all/[email protected] > ---
Reviewed-by: Carl Vanderlip <[email protected]>
