[PKTGEN]: fix device name handling
authorStephen Hemminger <shemminger@linux-foundation.org>
Mon, 5 Mar 2007 00:11:51 +0000 (16:11 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 26 Apr 2007 05:23:31 +0000 (22:23 -0700)
commit39df232f1a9ba48d41c68ee7d4046756e709cf91
tree8778c69e9b70f55d9c3161674887f3de217a0d6a
parentd5f1ce9a5e80fb315c86b036a89b1237fdf11938
[PKTGEN]: fix device name handling

Since devices can change name and other wierdness, don't hold onto
a copy of device name, instead use pointer to output device.

Fix a couple of leaks in error handling path as well.

Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: Robert Olsson <robert.olsson@its.uu.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c