summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2026-10-29 11:00:39 -0700
committerPaolo Abeni <pabeni@redhat.com>2026-11-03 09:57:58 +0100
commit750eb5ab457e62e221a9c8521e2274f14c85b387 (patch)
tree05f66b675cfb3a4e7b46c2eb59e56a7a9a09e046 /scripts/const_structs.checkpatch
parent684603842b78f75835d21fdf5c19ae717ed8eb1a (diff)
mctp i3c: Fix locking in an error path
If netdev_alloc_skb() fails, mctp_i3c_read() jumps to a label that unlocks mi->lock although that mutex has not been locked yet. Fix this by returning -ENOMEM directly. This bug has been detected by the Clang thread-safety analyzer. Cc: Leo Yang <Leo-Yang@quantatw.com> Cc: Paolo Abeni <pabeni@redhat.com> Cc: Jeremy Kerr <jk@codeconstruct.com.au> Cc: Matt Johnston <matt@codeconstruct.com.au> Cc: netdev@vger.kernel.org Fixes: 2d2d4f60ed26 ("mctp i3c: fix MCTP I3C driver multi-thread issue") Signed-off-by: Bart Van Assche <bvanassche@acm.org> Acked-by: Matt Johnston <matt@codeconstruct.com.au> Link: https://patch.msgid.link/71e0a880ffe7a83237e501b07884bf54343e76ca.1793296780.git.bvanassche@acm.org Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions