mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Bluetooth: mgmt: remove useless NULL checks
@ 2024-03-01 13:39 Roman Smirnov
  2024-03-01 13:39 ` [PATCH v2 1/2] Bluetooth: mgmt: remove NULL check in mgmt_set_connectable_complete() Roman Smirnov
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Roman Smirnov @ 2024-03-01 13:39 UTC (permalink / raw)
  To: Marcel Holtmann
  Cc: Roman Smirnov, Johan Hedberg, Luiz Augusto von Dentz,
	Sergey Shtylyov, linux-bluetooth, linux-kernel, lvc-project

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(-)

-- 
2.34.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-03-04 21:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-01 13:39 [PATCH v2 0/2] Bluetooth: mgmt: remove useless NULL checks Roman Smirnov
2024-03-01 13:39 ` [PATCH v2 1/2] Bluetooth: mgmt: remove NULL check in mgmt_set_connectable_complete() Roman Smirnov
2024-03-01 13:39 ` [PATCH v2 2/2] Bluetooth: mgmt: remove NULL check in add_ext_adv_params_complete() Roman Smirnov
2024-03-04 21:30 ` [PATCH v2 0/2] Bluetooth: mgmt: remove useless NULL checks patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®