rt2x00: Properly clean up beacon skbs.
[safe/jmp/linux-2.6] / drivers / net / sfc / xfp_phy.c
index cf75fab..f3684ad 100644 (file)
@@ -85,6 +85,8 @@ static int xfp_phy_init(struct efx_nic *efx)
        int rc;
 
        phy_data = kzalloc(sizeof(struct xfp_phy_data), GFP_KERNEL);
+       if (!phy_data)
+               return -ENOMEM;
        efx->phy_data = phy_data;
 
        EFX_INFO(efx, "XFP: PHY ID reg %x (OUI %x model %x revision"