On Fri, Dec 08, 2023 at 09:46:09PM +0100, Christophe JAILLET wrote: > Use struct_size() instead of handle_arr_calc_size(). > This is much more conventionnal. > > Suggested-by: Kees Cook <keescook@xxxxxxxxxxxx> > Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx> Looks good. And since capacity in u32, there's no need for size_add(). Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx> -- Kees Cook