Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181502
b: refs/heads/master
c: 8231152
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Beregalov authored and Mauro Carvalho Chehab committed Feb 26, 2010
1 parent 4dd3be8 commit 8f9c1dc
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: 78b06e0201fb32716211959bce133740a13873c4
refs/heads/master: 8231152f74dd9bd6f76036cfd7fbbf94ad0073d8
4 changes: 3 additions & 1 deletion trunk/drivers/media/IR/ir-keytable.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,10 @@ int ir_input_register(struct input_dev *input_dev,
ir_dev->rc_tab.size = ir_roundup_tablesize(rc_tab->size);
ir_dev->rc_tab.scan = kzalloc(ir_dev->rc_tab.size *
sizeof(struct ir_scancode), GFP_KERNEL);
if (!ir_dev->rc_tab.scan)
if (!ir_dev->rc_tab.scan) {
kfree(ir_dev);
return -ENOMEM;
}

IR_dprintk(1, "Allocated space for %d keycode entries (%zd bytes)\n",
ir_dev->rc_tab.size,
Expand Down

0 comments on commit 8f9c1dc

Please sign in to comment.