Skip to content

Commit

Permalink
staging: vt6655: return ENOMEM rather than ENODEV when alloc_etherdev…
Browse files Browse the repository at this point in the history
… fail

when alloc_etherdev fails we should be returning ENOMEM, not ENODEV

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Sep 8, 2012
1 parent 502eb53 commit cfd1fc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/vt6655/device_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ vt6655_probe(struct pci_dev *pcid, const struct pci_device_id *ent)

if (dev == NULL) {
printk(KERN_ERR DEVICE_NAME ": allocate net device failed \n");
return -ENODEV;
return -ENOMEM;
}

// Chain it all together
Expand Down

0 comments on commit cfd1fc1

Please sign in to comment.