Re: [RFC PATCH] mailbox: don't free the channel if the startup callback failed
From: Wolfram Sang
Date: Tue Apr 07 2026 - 06:41:40 EST
> 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:
signature.asc
Description: PGP signature