]> git.baikalelectronics.ru Git - kernel.git/commit
icmp: avoid allocating large struct on stack
authorCong Wang <amwang@redhat.com>
Sun, 2 Jun 2013 15:00:52 +0000 (15:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Jun 2013 07:28:44 +0000 (00:28 -0700)
commit06862d02d79cd12ce87576487b274192a0769ec8
treef8854a80373f9288f1ee27a8d0ab54d46b256a57
parent1265891be9397b2dd5d190a79adcd1a620a69e18
icmp: avoid allocating large struct on stack

struct icmp_bxm is a large struct, reduce stack usage
by allocating it on heap.

Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Joe Perches <joe@perches.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/icmp.c