android_kernel_xiaomi_sm7250/net/phonet
Hangyu Hua 4dece2760a phonet: refcount leak in pep_sock_accep
commit bcd0f93353326954817a4f9fa55ec57fb38acbb0 upstream.

sock_hold(sk) is invoked in pep_sock_accept(), but __sock_put(sk) is not
invoked in subsequent failure branches(pep_accept_conn() != 0).

Signed-off-by: Hangyu Hua <hbh25y@gmail.com>
Link: https://lore.kernel.org/r/20211209082839.33985-1-hbh25y@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Aayush Agarwal <aayush.a.agarwal@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-11 13:58:50 +01:00
..
af_phonet.c net: phonet: mark phonet_protocol as const 2017-10-07 23:15:08 +01:00
datagram.c net: phonet: mark phonet_protocol as const 2017-10-07 23:15:08 +01:00
Kconfig Phonet: kill the ST-Ericsson pipe controller Kconfig 2011-03-09 11:59:33 -08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pep-gprs.c net: Fix inconsistent teardown and release of private netdev state. 2017-06-07 15:53:24 -04:00
pep.c phonet: refcount leak in pep_sock_accep 2022-01-11 13:58:50 +01:00
pn_dev.c proc: introduce proc_create_net{,_data} 2018-05-16 07:24:30 +02:00
pn_netlink.c net: use rtnl_register_module where needed 2017-12-04 11:32:39 -05:00
socket.c net: use skb_queue_empty_lockless() in poll() handlers 2019-11-10 11:27:48 +01:00
sysctl.c net: Convert uses of typedef ctl_table to struct ctl_table 2013-06-13 02:36:09 -07:00