diff options
Diffstat (limited to 'drivers/net/virtio_net.c')
-rw-r--r-- | drivers/net/virtio_net.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index eda2042a6466..381a2d8d8a81 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c | |||
@@ -976,10 +976,8 @@ static void virtnet_set_rx_mode(struct net_device *dev) | |||
976 | buf = kzalloc(((uc_count + mc_count) * ETH_ALEN) + | 976 | buf = kzalloc(((uc_count + mc_count) * ETH_ALEN) + |
977 | (2 * sizeof(mac_data->entries)), GFP_ATOMIC); | 977 | (2 * sizeof(mac_data->entries)), GFP_ATOMIC); |
978 | mac_data = buf; | 978 | mac_data = buf; |
979 | if (!buf) { | 979 | if (!buf) |
980 | dev_warn(&dev->dev, "No memory for MAC address buffer\n"); | ||
981 | return; | 980 | return; |
982 | } | ||
983 | 981 | ||
984 | sg_init_table(sg, 2); | 982 | sg_init_table(sg, 2); |
985 | 983 | ||