]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
llc: fix another potential sk_buff leak in llc_ui_sendmsg()
authorEric Biggers <ebiggers@google.com>
Sun, 6 Oct 2019 21:24:26 +0000 (14:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jan 2020 09:24:33 +0000 (10:24 +0100)
commit34f0fc0ae90c4f48bc183325699126a1e48268f5
treeb6cc757fa801d25aa516129d6f70ba5f2f72719b
parentc7a2b5c6b6333d85820abddec91df77636aa1741
llc: fix another potential sk_buff leak in llc_ui_sendmsg()

[ Upstream commit fc8d5db10cbe1338a52ebc74e7feab9276721774 ]

All callers of llc_conn_state_process() except llc_build_and_send_pkt()
(via llc_ui_sendmsg() -> llc_ui_send_data()) assume that it always
consumes a reference to the skb.  Fix this caller to do the same.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/llc/af_llc.c
net/llc/llc_conn.c
net/llc/llc_if.c