mbox series

[v2,0/2] Bluetooth: mgmt: remove useless NULL checks

Message ID 20240301133916.1268403-1-r.smirnov@omp.ru
Headers show
Series Bluetooth: mgmt: remove useless NULL checks | expand

Message

Roman Smirnov March 1, 2024, 1:39 p.m. UTC
Svace reports NULL check after dereference in
mgmt_set_connectable_complete() and add_ext_adv_params_complete().
The following patches remove these checks.

The second version has a more compact subjects compared to the
first version.

Found by Linux Verification Center (linuxtesting.org) with Svace.

Roman Smirnov (2):
  Bluetooth: mgmt: remove useless NULL checks in
    mgmt_set_connectable_complete()
  Bluetooth: mgmt: remove useless NULL checks in
    add_ext_adv_params_complete()

 net/bluetooth/mgmt.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

Comments

patchwork-bot+bluetooth@kernel.org March 4, 2024, 9:30 p.m. UTC | #1
Hello:

This series was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Fri, 1 Mar 2024 13:39:14 +0000 you wrote:
> Svace reports NULL check after dereference in
> mgmt_set_connectable_complete() and add_ext_adv_params_complete().
> The following patches remove these checks.
> 
> The second version has a more compact subjects compared to the
> first version.
> 
> [...]

Here is the summary with links:
  - [v2,1/2] Bluetooth: mgmt: remove NULL check in mgmt_set_connectable_complete()
    https://git.kernel.org/bluetooth/bluetooth-next/c/9f67e5ba6f6c
  - [v2,2/2] Bluetooth: mgmt: remove NULL check in add_ext_adv_params_complete()
    https://git.kernel.org/bluetooth/bluetooth-next/c/3da5589ad808

You are awesome, thank you!