Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191578
b: refs/heads/master
c: 777a551
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Martin Schwidefsky committed May 17, 2010
1 parent 0d3e15b commit c44c9ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: ab3c68ee5fd329ba48094d3417fd60e30ea14a87
refs/heads/master: 777a5510093a6d6443351160c6969a0e66f3ba8a
7 changes: 3 additions & 4 deletions trunk/drivers/s390/char/keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static unsigned char ret_diacr[NR_DEAD] = {
struct kbd_data *
kbd_alloc(void) {
struct kbd_data *kbd;
int i, len;
int i;

kbd = kzalloc(sizeof(struct kbd_data), GFP_KERNEL);
if (!kbd)
Expand All @@ -72,11 +72,10 @@ kbd_alloc(void) {
goto out_maps;
for (i = 0; i < ARRAY_SIZE(func_table); i++) {
if (func_table[i]) {
len = strlen(func_table[i]) + 1;
kbd->func_table[i] = kmalloc(len, GFP_KERNEL);
kbd->func_table[i] = kstrdup(func_table[i],
GFP_KERNEL);
if (!kbd->func_table[i])
goto out_func;
memcpy(kbd->func_table[i], func_table[i], len);
}
}
kbd->fn_handler =
Expand Down

0 comments on commit c44c9ba

Please sign in to comment.