Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130551
b: refs/heads/master
c: 878b861
h: refs/heads/master
i:
  130549: 47a6ed1
  130547: 0d7fc2a
  130543: 54dd2d2
v: v3
  • Loading branch information
Mikulas Patocka authored and Linus Torvalds committed Jan 31, 2009
1 parent bc31647 commit 71d1176
Show file tree
Hide file tree
Showing 2 changed files with 2 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: f984d024190d5df98e448e35aa9e89a46fe50bb9
refs/heads/master: 878b8619f711280fd05845e21956434b5e588cc4
2 changes: 1 addition & 1 deletion trunk/drivers/char/selection.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ int set_selection(const struct tiocl_selection __user *sel, struct tty_struct *t

/* Allocate a new buffer before freeing the old one ... */
multiplier = use_unicode ? 3 : 1; /* chars can take up to 3 bytes */
bp = kmalloc((sel_end-sel_start)/2*multiplier+1, GFP_KERNEL);
bp = kmalloc(((sel_end-sel_start)/2+1)*multiplier, GFP_KERNEL);
if (!bp) {
printk(KERN_WARNING "selection: kmalloc() failed\n");
clear_selection();
Expand Down

0 comments on commit 71d1176

Please sign in to comment.