Re: [PATCH][next] net/sched: cls_u32: Use struct_size() helper

2020-07-31 Thread Gustavo A. R. Silva
On 7/31/20 18:50, David Miller wrote: > From: "Gustavo A. R. Silva" > Date: Thu, 30 Jul 2020 11:03:14 -0500 > >> Make use of the struct_size() helper, in multiple places, instead >> of an open-coded version in order to avoid any potential type >> mistakes and protect against potential integer

Re: [PATCH][next] net/sched: cls_u32: Use struct_size() helper

2020-07-31 Thread David Miller
From: "Gustavo A. R. Silva" Date: Thu, 30 Jul 2020 11:03:14 -0500 > Make use of the struct_size() helper, in multiple places, instead > of an open-coded version in order to avoid any potential type > mistakes and protect against potential integer overflows. > > Also, remove unnecessary object id

[PATCH][next] net/sched: cls_u32: Use struct_size() helper

2020-07-30 Thread Gustavo A. R. Silva
Make use of the struct_size() helper, in multiple places, instead of an open-coded version in order to avoid any potential type mistakes and protect against potential integer overflows. Also, remove unnecessary object identifier size. Signed-off-by: Gustavo A. R. Silva --- net/sched/cls_u32.c |