Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243119
b: refs/heads/master
c: 31f0075
h: refs/heads/master
i:
  243117: aa776f1
  243115: 0f054ae
  243111: 8572f93
  243103: df5dfdf
v: v3
  • Loading branch information
Dan Carpenter authored and Matthew Garrett committed Mar 28, 2011
1 parent e740930 commit 02bfc0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7227dedbc22f66f1bd310c866053b08de0496e38
refs/heads/master: 31f007598cc547ba3239524470386af8ae5f1c13
4 changes: 4 additions & 0 deletions trunk/drivers/platform/x86/sony-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,8 @@ static int sony_nc_handles_setup(struct platform_device *pd)
int result;

handles = kzalloc(sizeof(*handles), GFP_KERNEL);
if (!handles)
return -ENOMEM;

sysfs_attr_init(&handles->devattr.attr);
handles->devattr.attr.name = "handles";
Expand Down Expand Up @@ -1458,6 +1460,8 @@ static int sony_nc_kbd_backlight_setup(struct platform_device *pd)
return 0;

kbdbl_handle = kzalloc(sizeof(*kbdbl_handle), GFP_KERNEL);
if (!kbdbl_handle)
return -ENOMEM;

sysfs_attr_init(&kbdbl_handle->mode_attr.attr);
kbdbl_handle->mode_attr.attr.name = "kbd_backlight";
Expand Down

0 comments on commit 02bfc0d

Please sign in to comment.