Skip to content

Commit

Permalink
uml: fix error cleanup ordering
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed Oct 16, 2007
1 parent 8e2d10e commit 79f6623
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/um/drivers/port_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 79f6623

Please sign in to comment.