Commit 9c64508a authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller

net/mlx4_en: dereferencing freed memory

We dereferenced "mclist" after the kfree().
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 447458c0
...@@ -503,9 +503,7 @@ static void mlx4_en_do_set_multicast(struct work_struct *work) ...@@ -503,9 +503,7 @@ static void mlx4_en_do_set_multicast(struct work_struct *work)
/* remove from list */ /* remove from list */
list_del(&mclist->list); list_del(&mclist->list);
kfree(mclist); kfree(mclist);
} } else if (mclist->action == MCLIST_ADD) {
if (mclist->action == MCLIST_ADD) {
/* attach the address */ /* attach the address */
memcpy(&mc_list[10], mclist->addr, ETH_ALEN); memcpy(&mc_list[10], mclist->addr, ETH_ALEN);
/* needed for B0 steering support */ /* needed for B0 steering support */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment