tcp: handle tcp_net_metrics_init() order-5 memory allocation failures
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 16 Nov 2012 05:31:53 +0000 (05:31 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 20:14:19 +0000 (12:14 -0800)
commite7c1a252a7236c6a318c703a1bf29e3261a44e9c
treed081e5a3f02342d01d5fc48f89b6a62c19f325f7
parentc6f7b86211233142300aeec7b1ab4ae640b81abd
tcp: handle tcp_net_metrics_init() order-5 memory allocation failures

[ Upstream commit 976a702ac9eeacea09e588456ab165dc06f9ee83 ]

order-5 allocations can fail with current kernels, we should
try vmalloc() as well.

Reported-by: Julien Tinnes <jln@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/tcp_metrics.c