]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: atm: fix skb leak in sigd_send() default branch
authorWei Yang <albinwyang@tencent.com>
Sat, 9 May 2026 12:23:58 +0000 (20:23 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 May 2026 01:07:02 +0000 (18:07 -0700)
commitf9e2342046ef1560d35bcd4a4b1197648ffd151d
treed0611a47ba8ec3ead320052a802108be1379aff2
parente3adf69f8eb121a9128c2b0029efd050d3649153
net: atm: fix skb leak in sigd_send() default branch

The default branch in sigd_send() calls sock_put() and returns -EINVAL
without freeing the skb, while all other exit paths do so. Add the
missing dev_kfree_skb() before sock_put() to fix the leak.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Wei Yang <albinwyang@tencent.com>
Link: https://patch.msgid.link/20260509122358.1102997-1-albin_yang@163.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/atm/signaling.c