Re: [PATCH v2 1/3] Bluetooth: L2CAP: avoid maybe-return-locked in l2cap_get_chan_by_scid/dcid

Bart Van Assche <[email protected]>
Newsgroups org.kernel.vger.linux-bluetooth,dev.linux.lists.llvm,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On 7/14/26 1:40 AM, Pauli Virtanen wrote:
> Replace the maybe-return-locked pattern in l2cap_get_chan_by_scid/dcid()
> by doing locking in the caller after NULL check. This allows adding
> context analysis annotations for the locking.

Reviewed-by: Bart Van Assche <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.