Re: [PATCH] net: wwan: t7xx: Prefer struct_size over open coded arithmetic

2024-02-24 Thread Sergey Ryazanov
On 24.02.2024 20:19, 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 "port_prox" variable is a pointer to "struct port_proxy" and this structure ends in a flexible array: struct port_proxy {

[PATCH] net: wwan: t7xx: Prefer struct_size over open coded arithmetic

2024-02-24 Thread Erick Archer
This is an effort to get rid of all multiplications from allocation functions in order to prevent integer overflows [1][2]. As the "port_prox" variable is a pointer to "struct port_proxy" and this structure ends in a flexible array: struct port_proxy { [...] struct t7xx_port ports