net/mlx5: fix multi segment packet send
authorShahaf Shuler <shahafs@mellanox.com>
Mon, 26 Dec 2016 15:28:36 +0000 (17:28 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 17 Jan 2017 18:40:53 +0000 (19:40 +0100)
commit786b5c2dac785fe2fdbd303c236edc9491c00e5e
treeb4d1ba820a4a9f9b82e52c40384f13d0fbe3b911
parent30807f62b288a738141b20c19caf72fa5e00faed
net/mlx5: fix multi segment packet send

Dseg pointer is not initialized when the first segment is inlined
causing a segmentation fault in such situation.

Fixes: 2a66cf378954 ("net/mlx5: support inline send")

Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx5/mlx5_rxtx.c