ehea: fix use after free
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 26 Oct 2010 19:21:07 +0000 (19:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Oct 2010 18:37:33 +0000 (11:37 -0700)
commite5ccd96110d5ac0f73b695ba606feb6d69472f26
tree6178c6bc06df10664837c9589afdebf6369a9c98
parentb914c4ea929a4ba6fb97967800dc473c31552b98
ehea: fix use after free

ehea_start_xmit() dereferences skb after its freeing in ehea_xmit3() to
get vlan tags.

Move the offending block before the potential ehea_xmit3() call.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ehea/ehea_main.c