Re: [PATCH][next] iwlwifi: d3: Use struct_size() helper

2019-05-14 Thread Gustavo A. R. Silva
On 5/14/19 12:16 AM, Luciano Coelho wrote: > > Thanks! Applied to our internal tree and it will reach the mainline > following our normal upstreaming process. > Awesome. :) Thanks, Luciano. -- Gustavo

Re: [PATCH][next] iwlwifi: d3: Use struct_size() helper

2019-05-13 Thread Luciano Coelho
On Wed, 2019-04-03 at 11:03 -0500, Gustavo A. R. Silva wrote: > Make use of the struct_size() helper instead of an open-coded version > in order to avoid any potential type mistakes, in particular in the > context in which this code is being used. > > So, change the following form: > > sizeof(*pa