aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/core/dev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 1968980f513a..eb7f1a4fefc6 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -3018,7 +3018,7 @@ static void net_rx_action(struct softirq_action *h)
3018 * entries to the tail of this list, and only ->poll() 3018 * entries to the tail of this list, and only ->poll()
3019 * calls can remove this head entry from the list. 3019 * calls can remove this head entry from the list.
3020 */ 3020 */
3021 n = list_entry(list->next, struct napi_struct, poll_list); 3021 n = list_first_entry(list, struct napi_struct, poll_list);
3022 3022
3023 have = netpoll_poll_lock(n); 3023 have = netpoll_poll_lock(n);
3024 3024
@@ -4882,7 +4882,7 @@ static void rollback_registered_many(struct list_head *head)
4882 } 4882 }
4883 4883
4884 /* Process any work delayed until the end of the batch */ 4884 /* Process any work delayed until the end of the batch */
4885 dev = list_entry(head->next, struct net_device, unreg_list); 4885 dev = list_first_entry(head, struct net_device, unreg_list);
4886 call_netdevice_notifiers(NETDEV_UNREGISTER_BATCH, dev); 4886 call_netdevice_notifiers(NETDEV_UNREGISTER_BATCH, dev);
4887 4887
4888 synchronize_net(); 4888 synchronize_net();
@@ -5268,7 +5268,7 @@ void netdev_run_todo(void)
5268 5268
5269 while (!list_empty(&list)) { 5269 while (!list_empty(&list)) {
5270 struct net_device *dev 5270 struct net_device *dev
5271 = list_entry(list.next, struct net_device, todo_list); 5271 = list_first_entry(&list, struct net_device, todo_list);
5272 list_del(&dev->todo_list); 5272 list_del(&dev->todo_list);
5273 5273
5274 if (unlikely(dev->reg_state != NETREG_UNREGISTERING)) { 5274 if (unlikely(dev->reg_state != NETREG_UNREGISTERING)) {