From: Devendra Naga Date: Thu, 6 Sep 2012 18:38:05 +0000 (+0530) Subject: staging: vt6655: return ENOMEM rather than ENODEV when alloc_etherdev fail X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cfd1fc1f5f1f3a588c6d326738dcb6b9f7b820fa;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index 493866acd92c..4ee5f38bb2bf 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