net/mlx5: fix segfault on interrupt disable
authorShahaf Shuler <shahafs@mellanox.com>
Tue, 17 Oct 2017 12:04:56 +0000 (15:04 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 26 Oct 2017 00:33:00 +0000 (02:33 +0200)
commit8d92964180df64b320952a3fcf407934a76d936f
tree450b6442f09928062138b4dc1c688b301fdf6413
parent00fabc423db0ee5ed47da6e4c7d3c0c1e1a738b4
net/mlx5: fix segfault on interrupt disable

Interrupt disable can be called when the interrupt vector is not yet
allocated. Such case ends up with segmentation fault.

Fixing it by adding verification for interrupt vector validity.

Fixes: 09cb5b581762 ("net/mlx5: separate DPDK from verbs Rx queue objects")

Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_rxq.c