diff options
author | Jeff Dike <jdike@addtoit.com> | 2007-10-16 01:26:40 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 09:43:04 -0700 |
commit | 79f662334fefa2dd3fdf66c44a4d2dca5e378ab4 (patch) | |
tree | e11b6def260959aa90e8ed0823a700f7e0cdaf2c /arch/um/drivers/port_kern.c | |
parent | 8e2d10e1e76d894ec73d66dd63b641ccf5f5fb67 (diff) | |
download | kernel-crypto-79f662334fefa2dd3fdf66c44a4d2dca5e378ab4.tar.gz kernel-crypto-79f662334fefa2dd3fdf66c44a4d2dca5e378ab4.tar.xz kernel-crypto-79f662334fefa2dd3fdf66c44a4d2dca5e378ab4.zip |
uml: fix error cleanup ordering
I messed up the error cleanup ordering in the console port driver.
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/drivers/port_kern.c')
-rw-r--r-- | arch/um/drivers/port_kern.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/drivers/port_kern.c b/arch/um/drivers/port_kern.c index 1c8efd95c42..d8acf7470e7 100644 --- a/arch/um/drivers/port_kern.c +++ b/arch/um/drivers/port_kern.c @@ -216,10 +216,10 @@ void *port_data(int port_num) .telnetd_pid = -1 }); goto out; - out_free: - kfree(port); out_close: os_close_file(fd); + out_free: + kfree(port); out: up(&ports_sem); return dev; |