Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325261
b: refs/heads/master
c: 99d4b1a
h: refs/heads/master
i:
  325259: 3d71359
v: v3
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Sep 14, 2012
1 parent eac1db8 commit 2789a1c
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: 43bf2f4bfeb57601a9ccba382e0f378763df4b26
refs/heads/master: 99d4b1a6cbfa8449dad5fb58e8c8044301e2667a
4 changes: 3 additions & 1 deletion trunk/drivers/staging/ccg/ccg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1254,8 +1254,10 @@ static int __init init(void)
return PTR_ERR(ccg_class);

dev = kzalloc(sizeof(*dev), GFP_KERNEL);
if (!dev)
if (!dev) {
class_destroy(ccg_class);
return -ENOMEM;
}

dev->functions = supported_functions;
INIT_LIST_HEAD(&dev->enabled_functions);
Expand Down

0 comments on commit 2789a1c

Please sign in to comment.