1
0
Fork 0

net/mlx4_en: dereferencing freed memory

We dereferenced "mclist" after the kfree().

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
wifi-calibration
Dan Carpenter 2012-07-10 20:34:07 +00:00 committed by David S. Miller
parent 447458c01f
commit 9c64508af2
1 changed files with 1 additions and 3 deletions

View File

@ -503,9 +503,7 @@ static void mlx4_en_do_set_multicast(struct work_struct *work)
/* remove from list */
list_del(&mclist->list);
kfree(mclist);
}
if (mclist->action == MCLIST_ADD) {
} else if (mclist->action == MCLIST_ADD) {
/* attach the address */
memcpy(&mc_list[10], mclist->addr, ETH_ALEN);
/* needed for B0 steering support */