Re: [PATCH][next] Bluetooth: hci_sync: Use cmd->num_cis instead of magic number

2024-05-01 Thread patchwork-bot+bluetooth
Hello: This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz : On Wed, 1 May 2024 11:50:02 -0600 you wrote: > At the moment of the check, `cmd->num_cis` holds the value of 0x1f, > which is the max number of elements in the `cmd->cis[]` array at > declaration, w

Re: [PATCH][next] Bluetooth: hci_sync: Use cmd->num_cis instead of magic number

2024-05-01 Thread Kees Cook
On Wed, May 01, 2024 at 11:50:02AM -0600, Gustavo A. R. Silva wrote: > At the moment of the check, `cmd->num_cis` holds the value of 0x1f, > which is the max number of elements in the `cmd->cis[]` array at > declaration, which is 0x1f. > > So, avoid using 0x1f directly, and instead use `cmd->num_c

[PATCH][next] Bluetooth: hci_sync: Use cmd->num_cis instead of magic number

2024-05-01 Thread Gustavo A. R. Silva
At the moment of the check, `cmd->num_cis` holds the value of 0x1f, which is the max number of elements in the `cmd->cis[]` array at declaration, which is 0x1f. So, avoid using 0x1f directly, and instead use `cmd->num_cis`. Similarly to this other patch[1]. Link: https://lore.kernel.org/linux-har