Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79f66233 authored by Jeff Dike's avatar Jeff Dike Committed by Linus Torvalds
Browse files

uml: fix error cleanup ordering



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

Signed-off-by: default avatarJeff Dike <jdike@linux.intel.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 8e2d10e1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;