diff options
author | Huy Nguyen <huyn@mellanox.com> | 2017-10-30 04:40:56 +0100 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2017-11-10 07:39:20 +0100 |
commit | b8cce68bf1f1b773ac1a535707f968512b3c1e5f (patch) | |
tree | 3cae0980b4aec28ae12861b3ab83921e31c8bc7c /drivers/net | |
parent | rds: ib: Fix NULL pointer dereference in debug code (diff) | |
download | linux-b8cce68bf1f1b773ac1a535707f968512b3c1e5f.tar.xz linux-b8cce68bf1f1b773ac1a535707f968512b3c1e5f.zip |
net/mlx5: Loop over temp list to release delay events
list_splice_init initializing waiting_events_list after splicing it to
temp list, therefore we should loop over temp list to fire the events.
Fixes: 4ca637a20a52 ("net/mlx5: Delay events till mlx5 interface's add complete for pci resume")
Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Signed-off-by: Feras Daoud <ferasda@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/dev.c b/drivers/net/ethernet/mellanox/mlx5/core/dev.c index fc281712869b..17b723218b0c 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/dev.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/dev.c @@ -93,7 +93,7 @@ static void delayed_event_release(struct mlx5_device_context *dev_ctx, list_splice_init(&priv->waiting_events_list, &temp); if (!dev_ctx->context) goto out; - list_for_each_entry_safe(de, n, &priv->waiting_events_list, list) + list_for_each_entry_safe(de, n, &temp, list) dev_ctx->intf->event(dev, dev_ctx->context, de->event, de->param); out: |