aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/um/drivers/port_kern.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/um/drivers/port_kern.c b/arch/um/drivers/port_kern.c
index 1c8efd95c421..d8acf7470e70 100644
--- a/arch/um/drivers/port_kern.c
+++ b/arch/um/drivers/port_kern.c
@@ -216,10 +216,10 @@ void *port_data(int port_num)
216 .telnetd_pid = -1 }); 216 .telnetd_pid = -1 });
217 goto out; 217 goto out;
218 218
219 out_free:
220 kfree(port);
221 out_close: 219 out_close:
222 os_close_file(fd); 220 os_close_file(fd);
221 out_free:
222 kfree(port);
223 out: 223 out:
224 up(&ports_sem); 224 up(&ports_sem);
225 return dev; 225 return dev;