diff options
Diffstat (limited to 'drivers/net/usb/r8152.c')
-rw-r--r-- | drivers/net/usb/r8152.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 8ecb41b2df09..00b3192568fe 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c | |||
@@ -1266,6 +1266,9 @@ static struct tx_agg *r8152_get_tx_agg(struct r8152 *tp) | |||
1266 | struct tx_agg *agg = NULL; | 1266 | struct tx_agg *agg = NULL; |
1267 | unsigned long flags; | 1267 | unsigned long flags; |
1268 | 1268 | ||
1269 | if (list_empty(&tp->tx_free)) | ||
1270 | return NULL; | ||
1271 | |||
1269 | spin_lock_irqsave(&tp->tx_lock, flags); | 1272 | spin_lock_irqsave(&tp->tx_lock, flags); |
1270 | if (!list_empty(&tp->tx_free)) { | 1273 | if (!list_empty(&tp->tx_free)) { |
1271 | struct list_head *cursor; | 1274 | struct list_head *cursor; |