Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67849
b: refs/heads/master
c: 5280d60
h: refs/heads/master
i:
  67847: 048d14a
v: v3
  • Loading branch information
Mariusz Kozlowski authored and Greg Kroah-Hartman committed Oct 12, 2007
1 parent 1db2b53 commit c0cdd56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: b3aceb2bab988e514e65dd37f385221a095ad477
refs/heads/master: 5280d6083a77cc06a8c8360a2c461fd12d780fb8
8 changes: 5 additions & 3 deletions trunk/drivers/usb/misc/ftdi-elan.c
Original file line number Diff line number Diff line change
Expand Up @@ -2777,12 +2777,14 @@ static int ftdi_elan_probe(struct usb_interface *interface,
size_t buffer_size;
int i;
int retval = -ENOMEM;
struct usb_ftdi *ftdi = kmalloc(sizeof(struct usb_ftdi), GFP_KERNEL);
if (ftdi == NULL) {
struct usb_ftdi *ftdi;

ftdi = kzalloc(sizeof(struct usb_ftdi), GFP_KERNEL);
if (!ftdi) {
printk(KERN_ERR "Out of memory\n");
return -ENOMEM;
}
memset(ftdi, 0x00, sizeof(struct usb_ftdi));

mutex_lock(&ftdi_module_lock);
list_add_tail(&ftdi->ftdi_list, &ftdi_static_list);
ftdi->sequence_num = ++ftdi_instances;
Expand Down

0 comments on commit c0cdd56

Please sign in to comment.