diff options
-rw-r--r-- | drivers/net/bnx2x_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c index ef8103b3523e..4be05847f86f 100644 --- a/drivers/net/bnx2x_main.c +++ b/drivers/net/bnx2x_main.c | |||
@@ -8243,6 +8243,9 @@ static int bnx2x_set_eeprom(struct net_device *dev, | |||
8243 | struct bnx2x *bp = netdev_priv(dev); | 8243 | struct bnx2x *bp = netdev_priv(dev); |
8244 | int rc; | 8244 | int rc; |
8245 | 8245 | ||
8246 | if (!netif_running(dev)) | ||
8247 | return -EAGAIN; | ||
8248 | |||
8246 | DP(BNX2X_MSG_NVM, "ethtool_eeprom: cmd %d\n" | 8249 | DP(BNX2X_MSG_NVM, "ethtool_eeprom: cmd %d\n" |
8247 | DP_LEVEL " magic 0x%x offset 0x%x (%d) len 0x%x (%d)\n", | 8250 | DP_LEVEL " magic 0x%x offset 0x%x (%d) len 0x%x (%d)\n", |
8248 | eeprom->cmd, eeprom->magic, eeprom->offset, eeprom->offset, | 8251 | eeprom->cmd, eeprom->magic, eeprom->offset, eeprom->offset, |