Subject: Fix oops in r8169 driver When rtl8169_init_board didn't find the PCI power state capability, it would bail out but return 0 (success). rtl8169_init_one would then oops trying to dereference the dev pointer which is NULL.
Signed-off-by: Olaf Kirch <[EMAIL PROTECTED]> Index: 2.6.14/drivers/net/r8169.c =================================================================== --- 2.6.14.orig/drivers/net/r8169.c +++ 2.6.14/drivers/net/r8169.c @@ -1348,6 +1348,7 @@ rtl8169_init_board(struct pci_dev *pdev, "Cannot find PowerManagement capability. " "Aborting.\n"); } + rc = -ENODEV; goto err_out_mwi; } -- Olaf Kirch | --- o --- Nous sommes du soleil we love when we play [EMAIL PROTECTED] | / | \ sol.dhoop.naytheet.ah kin.ir.samse.qurax - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html