Re: [RFC PATCH] mailbox: don't free the channel if the startup callback failed

Wolfram Sang
2026-04-07T10:36:21Z

[-- Attachment #1: Type: text/plain, Size: 336 bytes --]

> Still, not calling shutdown() still seems essential to me, so I'd
> appreciate comments about the patch still.

Another option which I discarded but maybe favored is to introduce

__mbox_free_channel(struct mbox_chan *chan, bool do_shutdown)

When startup() fails, it is called with 'false'. mbox_free_channel wraps
it with 'true'.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]