diff options
-rw-r--r-- | drivers/net/ixgbe/ixgbe_main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index 576fb51eb748..a4aeaec1b298 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c | |||
@@ -1942,6 +1942,10 @@ static int ixgbe_open(struct net_device *netdev) | |||
1942 | int err; | 1942 | int err; |
1943 | u32 num_rx_queues = adapter->num_rx_queues; | 1943 | u32 num_rx_queues = adapter->num_rx_queues; |
1944 | 1944 | ||
1945 | /* disallow open during test */ | ||
1946 | if (test_bit(__IXGBE_TESTING, &adapter->state)) | ||
1947 | return -EBUSY; | ||
1948 | |||
1945 | try_intr_reinit: | 1949 | try_intr_reinit: |
1946 | /* allocate transmit descriptors */ | 1950 | /* allocate transmit descriptors */ |
1947 | err = ixgbe_setup_all_tx_resources(adapter); | 1951 | err = ixgbe_setup_all_tx_resources(adapter); |