staging: vt6655: return ENOMEM rather than ENODEV when alloc_etherdev 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>
This commit is contained in:
parent
502eb5369f
commit
cfd1fc1f5f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user