Re: [PATCH v3 2/3] RDMA/mana_ib: Prefer struct_size over open coded arithmetic

2024-04-08 Thread Justin Stitt
Hi, On Sat, Apr 06, 2024 at 04:23:36PM +0200, Erick Archer wrote: > This is an effort to get rid of all multiplications from allocation > functions in order to prevent integer overflows [1][2]. > > As the "req" variable is a pointer to "struct mana_cfg_rx_steer_req_v2" > and this structure ends i

RE: [PATCH v3 2/3] RDMA/mana_ib: Prefer struct_size over open coded arithmetic

2024-04-08 Thread Long Li
> Subject: [PATCH v3 2/3] RDMA/mana_ib: Prefer struct_size over open coded > arithmetic > > This is an effort to get rid of all multiplications from allocation functions > in order to > prevent integer overflows [1][2]. > > As the "req" variable is a pointer to "struct mana_cfg_rx_steer_req_v2" >