mlx4: fix possible crash on scattered mbuf allocation failure
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Tue, 30 Jun 2015 09:27:47 +0000 (11:27 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 1 Jul 2015 08:17:31 +0000 (10:17 +0200)
commit53bbf5afbdaab6242d400e8b725ac6c6e9c50e10
tree6a672283b36aa3af052ec2dcb94e60f97c56385c
parentc55e94f560ef5c9fcee4584952de1d0bd414aece
mlx4: fix possible crash on scattered mbuf allocation failure

When failing to allocate a segment, mlx4_rx_burst_sp() may call
rte_pktmbuf_free() on an incomplete scattered mbuf whose next pointer
in the last segment is not set.

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx4/mlx4.c