Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296420
b: refs/heads/master
c: ee48507
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and Richard Weinberger committed Mar 24, 2012
1 parent fb9d854 commit 646d800
Show file tree
Hide file tree
Showing 3 changed files with 6 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: c8e2876fc8adaf9539f051fcda5d551308e8a0f8
refs/heads/master: ee4850702bd6980c7baeb6a45142d55744a109a2
4 changes: 4 additions & 0 deletions trunk/arch/um/drivers/chan_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ int parse_chan_pair(char *str, struct line *line, int device,
char *in, *out;

if (!list_empty(chans)) {
line->chan_in = line->chan_out = NULL;
free_chan(chans);
INIT_LIST_HEAD(chans);
}
Expand All @@ -565,13 +566,15 @@ int parse_chan_pair(char *str, struct line *line, int device,

new->input = 1;
list_add(&new->list, chans);
line->chan_in = new;

new = parse_chan(line, out, device, opts, error_out);
if (new == NULL)
return -1;

list_add(&new->list, chans);
new->output = 1;
line->chan_out = new;
}
else {
new = parse_chan(line, str, device, opts, error_out);
Expand All @@ -581,6 +584,7 @@ int parse_chan_pair(char *str, struct line *line, int device,
list_add(&new->list, chans);
new->input = 1;
new->output = 1;
line->chan_in = line->chan_out = new;
}
return 0;
}
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/um/drivers/line.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ struct line {

char *init_str;
struct list_head chan_list;
struct chan *chan_in, *chan_out;

/*This lock is actually, mostly, local to*/
spinlock_t lock;
Expand Down

0 comments on commit 646d800

Please sign in to comment.