diff options
| author | Dust Li <[email protected]> | 2019-04-01 08:04:53 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-04-01 17:11:41 +0000 |
| commit | b506bc975f60f06e13e74adb35e708a23dc4e87c (patch) | |
| tree | 90a10d72c1a9e02ce8e5de0d7f23ae114b8f6ea7 /drivers/net/ethernet/intel/i40e/i40e_main.c | |
| parent | Merge branch 'tipc-a-batch-of-uninit-value-fixes-for-netlink_compat' (diff) | |
| download | kernel-b506bc975f60f06e13e74adb35e708a23dc4e87c.tar.gz kernel-b506bc975f60f06e13e74adb35e708a23dc4e87c.zip | |
tcp: fix a potential NULL pointer dereference in tcp_sk_exit
When tcp_sk_init() failed in inet_ctl_sock_create(),
'net->ipv4.tcp_congestion_control' will be left
uninitialized, but tcp_sk_exit() hasn't check for
that.
This patch add checking on 'net->ipv4.tcp_congestion_control'
in tcp_sk_exit() to prevent NULL-ptr dereference.
Fixes: 6670e1524477 ("tcp: Namespace-ify sysctl_tcp_default_congestion_control")
Signed-off-by: Dust Li <[email protected]>
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_main.c')
0 files changed, 0 insertions, 0 deletions
