public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/4] UML - Fix error cleanup ordering
@ 2007-07-30 17:09 Jeff Dike
  0 siblings, 0 replies; only message in thread
From: Jeff Dike @ 2007-07-30 17:09 UTC (permalink / raw)
  To: Andrew Morton; +Cc: LKML, uml-devel

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

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
--
 arch/um/drivers/port_kern.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-2.6.21-mm/arch/um/drivers/port_kern.c
===================================================================
--- linux-2.6.21-mm.orig/arch/um/drivers/port_kern.c	2007-07-27 11:56:14.000000000 -0400
+++ linux-2.6.21-mm/arch/um/drivers/port_kern.c	2007-07-27 11:57:07.000000000 -0400
@@ -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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-30 17:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-30 17:09 [PATCH 3/4] UML - Fix error cleanup ordering Jeff Dike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox