net/mlx5: fix exception handling
authorYongseok Koh <yskoh@mellanox.com>
Tue, 30 May 2017 01:02:59 +0000 (18:02 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 12 Jun 2017 09:41:27 +0000 (10:41 +0100)
commit70aee77ec6284d18ae30486b545b0527c2082bce
tree6e4867d1d615506b4e8d2a6f1d18592c62e43566
parent21233dd6c7683a20135a90f839f92aae077effff
net/mlx5: fix exception handling

A sanity check is required in priv_fdir_disable(). If resizing Rx queue
fails, this can cause a crash by referencing a NULL pointer.

Fixes: 76f5c99e6840 ("mlx5: support flow director")
Fixes: 0cdddf4d0626 ("net/mlx5: split Rx queue structure")
Cc: stable@dpdk.org
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx5/mlx5_fdir.c