pktgen: fix skb leak in case of failure
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Tue, 14 Oct 2008 01:43:59 +0000 (18:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Oct 2008 01:43:59 +0000 (18:43 -0700)
commitb4bb4ac8cb05ab5c13dfb7b47ef243982d3ad526
treea33bc423c5bbe3e5d9f5af5b4064bc988149df67
parent9e9540b8f7b91c8818e2386add3b58a961459166
pktgen: fix skb leak in case of failure

Seems that skb goes into void unless something magic happened
in pskb_expand_head in case of failure.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c