commit | 6a3a773418bfba9fd290908c4901dd80b94fb107 | [log] [tgz] |
---|---|---|
author | Paul Hber <phueber@kernsp.in> | Wed Mar 22 11:56:46 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Wed Mar 22 11:56:46 2017 +0000 |
tree | 7365b42f01580fa6b5f7e555cbb661064ed1f367 | |
parent | a6f9e558363fa76218bcb7622fd27a6b867fb844 [diff] | |
parent | 837786cbbb60f00770b02efd15546b36008b536e [diff] |
l2tp: avoid use-after-free caused by l2tp_ip_backlog_recv am: 837786cbbb Change-Id: I50cc6eec703138b7b7e9163ae7424f541947be1c
diff --git a/net/l2tp/l2tp_ip.c b/net/l2tp/l2tp_ip.c index c0f0750..ff750bb 100644 --- a/net/l2tp/l2tp_ip.c +++ b/net/l2tp/l2tp_ip.c
@@ -388,7 +388,7 @@ drop: IP_INC_STATS(sock_net(sk), IPSTATS_MIB_INDISCARDS); kfree_skb(skb); - return -1; + return 0; } /* Userspace will call sendmsg() on the tunnel socket to send L2TP