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

Bart Van Assche <[email protected]> Wed, 22 Jul 2026 11:14:59 -0700
Newsgroups dev.linux.lists.llvm,org.kernel.vger.linux-bluetooth,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]>