All of lore.kernel.org
 help / color / mirror / Atom feed
* [BlueZ 0/6] "cleanup" variable attribute follow-up
@ 2026-06-09 13:50 Bastien Nocera
  2026-06-09 13:50 ` [BlueZ 1/6] shared/util: Fix warnings when cleaning up NULL pointers Bastien Nocera
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Bastien Nocera @ 2026-06-09 13:50 UTC (permalink / raw)
  To: linux-bluetooth

Follow-up to the partially applied "Add helper for "cleanup" variable
attribute" patchset.

This new version:
- fixes the crasher seen starting up bluetoothd
- fixes the warnings seen starting up bluetoothd, seen when free'ing
  NULL variables
- reimplements the _steal_ functions as macros to better type-check at
  compile-time
- mentions _steal_ macros in the style docs.

The original patchset also caught a bug in the meson port where the
config file path wasn't made absolute, so bluetoothd couldn't find the
config file when starting up, so I never saw those warnings and crashes.
This bug is now fixed in the meson port branch.

Bastien Nocera (6):
  shared/util: Fix warnings when cleaning up NULL pointers
  shared/util: Better type-checking in _steal_* commands
  doc: Recommend using _cleanup_ and friends
  main: Use _cleanup_() to simplify configuration parsing
  client: Use _cleanup_fd_ to simplify urandom access
  btattach: Use _cleanup_fd_ to simplify error paths

 client/mgmt.c                 |   5 +-
 doc/maintainer-guidelines.rst |   6 ++
 src/main.c                    | 108 ++++++++++++----------------------
 src/shared/util.h             |  23 +++-----
 tools/btattach.c              |  18 ++----
 5 files changed, 60 insertions(+), 100 deletions(-)

-- 
2.54.0


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

end of thread, other threads:[~2026-06-09 17:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-09 13:50 [BlueZ 0/6] "cleanup" variable attribute follow-up Bastien Nocera
2026-06-09 13:50 ` [BlueZ 1/6] shared/util: Fix warnings when cleaning up NULL pointers Bastien Nocera
2026-06-09 17:30   ` "cleanup" variable attribute follow-up bluez.test.bot
2026-06-09 13:50 ` [BlueZ 2/6] shared/util: Better type-checking in _steal_* commands Bastien Nocera
2026-06-09 13:50 ` [BlueZ 3/6] doc: Recommend using _cleanup_ and friends Bastien Nocera
2026-06-09 13:50 ` [BlueZ 4/6] main: Use _cleanup_() to simplify configuration parsing Bastien Nocera
2026-06-09 13:50 ` [BlueZ 5/6] client: Use _cleanup_fd_ to simplify urandom access Bastien Nocera
2026-06-09 13:50 ` [BlueZ 6/6] btattach: Use _cleanup_fd_ to simplify error paths Bastien Nocera

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.