Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18926
b: refs/heads/master
c: c42791b
h: refs/heads/master
v: v3
  • Loading branch information
Paolo 'Blaisorblade' Giarrusso authored and Linus Torvalds committed Jan 19, 2006
1 parent 95be846 commit 3602962
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3b948068b84b9759cdf0965abf3074dcb9230e98
refs/heads/master: c42791b6ec5453cd7910eac7bfdd88f27173f81c
4 changes: 4 additions & 0 deletions trunk/arch/um/drivers/daemon_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ void daemon_init(struct net_device *dev, void *data)
dpri->fd = -1;
dpri->control = -1;
dpri->dev = dev;
/* We will free this pointer. If it contains crap we're burned. */
dpri->ctl_addr = NULL;
dpri->data_addr = NULL;
dpri->local_addr = NULL;

printk("daemon backend (uml_switch version %d) - %s:%s",
SWITCH_VERSION, dpri->sock_type, dpri->ctl_sock);
Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/um/drivers/daemon_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,16 @@ static void daemon_remove(void *data)
struct daemon_data *pri = data;

os_close_file(pri->fd);
pri->fd = -1;
os_close_file(pri->control);
pri->control = -1;

kfree(pri->data_addr);
pri->data_addr = NULL;
kfree(pri->ctl_addr);
pri->ctl_addr = NULL;
kfree(pri->local_addr);
pri->local_addr = NULL;
}

int daemon_user_write(int fd, void *buf, int len, struct daemon_data *pri)
Expand Down

0 comments on commit 3602962

Please sign in to comment.