uml: Eliminate temporary buffer in eth_configure
authorPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Sun, 6 May 2007 21:51:14 +0000 (14:51 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 7 May 2007 19:13:02 +0000 (12:13 -0700)
commit8c8408358f19a386298744829bf67b90c129ff18
treedd2b57ba36e912b4d586678324758afddc236fee
parente024715f5f6250179a31716a898800a48cf23b39
uml: Eliminate temporary buffer in eth_configure

Avoid using the temporary buffer introduced by previous patch to hold the
device name.

Btw, avoid leaking device on an error path.  Other error paths may need
cleanup.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/drivers/net_kern.c