projects/linux·commit 79f66233

uml: fix error cleanup ordering

79f66233 · Jeff Dike <[email protected]> · 2007-10-16 01:26:40 -07:00

I messed up the error cleanup ordering in the console port driver.

Signed-off-by: Jeff Dike <[email protected]>
Cc: Paolo 'Blaisorblade' Giarrusso <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
79f662334fefa2dd3fdf66c44a4d2dca5e378ab4
Parents
8e2d10e1

Changes

1 files changed · +2 −2

FileStatusAddDelContent
arch/um/drivers/port_kern.cmodified+2−2View file

arch/um/drivers/port_kern.c

View file
diff --git a/arch/um/drivers/port_kern.c b/arch/um/drivers/port_kern.c
index 1c8efd9..d8acf74 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;