Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296419
b: refs/heads/master
c: c8e2876
h: refs/heads/master
i:
  296417: 21457dc
  296415: 0b136a1
v: v3
  • Loading branch information
Al Viro authored and Richard Weinberger committed Mar 24, 2012
1 parent d6694b9 commit fb9d854
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 04292b2cf8f02a33cfc1054c0c51aa8c77731813
refs/heads/master: c8e2876fc8adaf9539f051fcda5d551308e8a0f8
4 changes: 3 additions & 1 deletion trunk/arch/um/drivers/line.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,10 @@ int setup_one_line(struct line *lines, int n, char *init,
*error_out = "Failed to allocate memory";
return -ENOMEM;
}
if (line->valid)
if (line->valid) {
tty_unregister_device(driver, n);
kfree(line->init_str);
}
line->init_str = new;
line->valid = 1;
err = parse_chan_pair(new, line, n, opts, error_out);
Expand Down

0 comments on commit fb9d854

Please sign in to comment.