]> git.baikalelectronics.ru Git - kernel.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)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 8 Oct 2019 20:23:05 +0000 (13:23 -0700)
commit6a627c4bd60aa10bb0b53ab772fba1f390f5b397
treee86c4bac21ea8bd46b6bcc73db671e8fcfed9681
parentd44ddf2953f9a87b289257ab732a8b8f6486301b
llc: fix another potential sk_buff leak in llc_ui_sendmsg()

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>
net/llc/af_llc.c
net/llc/llc_conn.c
net/llc/llc_if.c