packet: Add needed_tailroom to packet_sendmsg_spkt
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 18 Nov 2011 02:20:05 +0000 (02:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Nov 2011 19:37:10 +0000 (14:37 -0500)
commit4ce4091256d61f8e9c7296f6643c8bd5bb2a00e5
treeff41287641f6320a993d67afa6c41bff4cfdbc39
parent56c978f1da1f630ef18aa668a9748c6c23ab819b
packet: Add needed_tailroom to packet_sendmsg_spkt

packet: Add needed_tailroom to packet_sendmsg_spkt

While auditing LL_ALLOCATED_SPACE I noticed that packet_sendmsg_spkt
did not include needed_tailroom when allocating an skb.  This isn't
a fatal error as we should always tolerate inadequate tail room but
it isn't optimal.

This patch fixes that.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c