Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22032
b: refs/heads/master
c: d874a2b
h: refs/heads/master
v: v3
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Mar 20, 2006
1 parent e832aa0 commit 876ab09
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: 17590840dc3c14cb059817466884ac9bd97c4a35
refs/heads/master: d874a2bade6eec21abb30d4822d7b3e43cfbae95
3 changes: 1 addition & 2 deletions trunk/drivers/usb/misc/phidgetservo.c
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,11 @@ servo_probe(struct usb_interface *interface, const struct usb_device_id *id)
struct usb_device *udev = interface_to_usbdev(interface);
struct phidget_servo *dev;

dev = kmalloc(sizeof (struct phidget_servo), GFP_KERNEL);
dev = kzalloc(sizeof (struct phidget_servo), GFP_KERNEL);
if (dev == NULL) {
dev_err(&interface->dev, "%s - out of memory\n", __FUNCTION__);
return -ENOMEM;
}
memset(dev, 0x00, sizeof (*dev));

dev->udev = usb_get_dev(udev);
dev->type = id->driver_info;
Expand Down

0 comments on commit 876ab09

Please sign in to comment.