diff options
Diffstat (limited to 'arch/um/drivers/daemon_user.c')
-rw-r--r-- | arch/um/drivers/daemon_user.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/um/drivers/daemon_user.c b/arch/um/drivers/daemon_user.c index 09d1de90297c..d0b656a517d3 100644 --- a/arch/um/drivers/daemon_user.c +++ b/arch/um/drivers/daemon_user.c | |||
@@ -123,7 +123,7 @@ static int connect_to_switch(struct daemon_data *pri) | |||
123 | return err; | 123 | return err; |
124 | } | 124 | } |
125 | 125 | ||
126 | static void daemon_user_init(void *data, void *dev) | 126 | static int daemon_user_init(void *data, void *dev) |
127 | { | 127 | { |
128 | struct daemon_data *pri = data; | 128 | struct daemon_data *pri = data; |
129 | struct timeval tv; | 129 | struct timeval tv; |
@@ -146,7 +146,10 @@ static void daemon_user_init(void *data, void *dev) | |||
146 | if(pri->fd < 0){ | 146 | if(pri->fd < 0){ |
147 | kfree(pri->local_addr); | 147 | kfree(pri->local_addr); |
148 | pri->local_addr = NULL; | 148 | pri->local_addr = NULL; |
149 | return pri->fd; | ||
149 | } | 150 | } |
151 | |||
152 | return 0; | ||
150 | } | 153 | } |
151 | 154 | ||
152 | static int daemon_open(void *data) | 155 | static int daemon_open(void *data) |