Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22033
b: refs/heads/master
c: 06d6947
h: refs/heads/master
i:
  22031: e832aa0
v: v3
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Mar 20, 2006
1 parent 876ab09 commit e9ad844
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: d874a2bade6eec21abb30d4822d7b3e43cfbae95
refs/heads/master: 06d694748b5173d972d7e4169173adad62ee67c0
3 changes: 1 addition & 2 deletions trunk/drivers/usb/misc/usbled.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,11 @@ static int led_probe(struct usb_interface *interface, const struct usb_device_id
struct usb_led *dev = NULL;
int retval = -ENOMEM;

dev = kmalloc(sizeof(struct usb_led), GFP_KERNEL);
dev = kzalloc(sizeof(struct usb_led), GFP_KERNEL);
if (dev == NULL) {
dev_err(&interface->dev, "Out of memory\n");
goto error;
}
memset (dev, 0x00, sizeof (*dev));

dev->udev = usb_get_dev(udev);

Expand Down

0 comments on commit e9ad844

Please sign in to comment.