Re: [PATCH] Bluetooth: hci_core: Prefer struct_size over open coded arithmetic

From: Erick Archer
Date: Mon May 13 2024 - 13:20:04 EST


Hi Kees and Luiz,
First of all, thanks for the reviews.

On Mon, May 13, 2024 at 12:31:29PM -0400, Luiz Augusto von Dentz wrote:
> Hi Eric,
>
> On Sun, May 12, 2024 at 11:08 PM Kees Cook <keescook@xxxxxxxxxxxx> wrote:
> >
> > On Sun, May 12, 2024 at 04:17:06PM +0200, Erick Archer wrote:
> > > [...]
> > > Also remove the "size" variable as it is no longer needed and refactor
> > > the list_for_each_entry() loop to use dr[n] instead of (dr + n).
>
> Have the change above split on its own patch.

Ok, no problem. I will send a new version.

Regards,
Erick