diff options
author | Yishai Hadas <yishaih@mellanox.com> | 2016-06-22 17:27:29 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-20 18:09:25 +0200 |
commit | d057209617da2af6e2d40dc1473c85813fb443f8 (patch) | |
tree | 23109df58c8eb8997ee7b566f0867c908f0418f8 /Makefile | |
parent | 155c27dd5575e9a5466587ece499c61d9089615a (diff) | |
download | linux-stable-d057209617da2af6e2d40dc1473c85813fb443f8.tar.gz linux-stable-d057209617da2af6e2d40dc1473c85813fb443f8.tar.bz2 linux-stable-d057209617da2af6e2d40dc1473c85813fb443f8.zip |
IB/mlx4: Fix error flow when sending mads under SRIOV
commit a6100603a4a87fc436199362bdb81cb849faaf6e upstream.
Fix mad send error flow to prevent double freeing address handles,
and leaking tx_ring entries when SRIOV is active.
If ib_mad_post_send fails, the address handle pointer in the tx_ring entry
must be set to NULL (or there will be a double-free) and tx_tail must be
incremented (or there will be a leak of tx_ring entries).
The tx_ring is handled the same way in the send-completion handler.
Fixes: 37bfc7c1e83f ("IB/mlx4: SR-IOV multiplex and demultiplex MADs")
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Reviewed-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions