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

From: Bart Van Assche

Date: Wed Jul 22 2026 - 14:19:17 EST


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 <bvanassche@xxxxxxx>