diff options
author | Devendra Naga <devendra.aaru@gmail.com> | 2012-09-07 00:08:05 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-07 22:07:37 -0700 |
commit | cfd1fc1f5f1f3a588c6d326738dcb6b9f7b820fa (patch) | |
tree | 8c866d1bd8b947fe6d2e57b26f80f96e3a648241 /drivers/staging/vt6655 | |
parent | 502eb5369f51539aaee6ec173165be28d916a3ca (diff) | |
download | op-kernel-dev-cfd1fc1f5f1f3a588c6d326738dcb6b9f7b820fa.zip op-kernel-dev-cfd1fc1f5f1f3a588c6d326738dcb6b9f7b820fa.tar.gz |
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>
Diffstat (limited to 'drivers/staging/vt6655')
-rw-r--r-- | drivers/staging/vt6655/device_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index 493866a..4ee5f38 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -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 |