提交 79f66233 编写于 作者: J Jeff Dike 提交者: Linus Torvalds

uml: fix error cleanup ordering

I messed up the error cleanup ordering in the console port driver.
Signed-off-by: NJeff Dike <jdike@linux.intel.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 8e2d10e1
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册