mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
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>
This commit is contained in:
parent
8e2d10e1e7
commit
79f662334f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user