net/mlx5: Fix error flow in CREATE_QP command
authorMoni Shoua <monis@mellanox.com>
Mon, 4 Dec 2017 06:59:25 +0000 (08:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Jan 2018 19:35:14 +0000 (20:35 +0100)
commit7493d98ea84c1fb92feef5b2e863d696a1634448
treefb3558673c4807bf55f49c09d1a9bc46b01bcb81
parentc844a458948711c36105bf0b4e8771b104e1906b
net/mlx5: Fix error flow in CREATE_QP command

[ Upstream commit dbff26e44dc3ec4de6578733b054a0114652a764 ]

In error flow, when DESTROY_QP command should be executed, the wrong
mailbox was set with data, not the one that is written to hardware,
Fix that.

Fixes: 09a7d9eca1a6 '{net,IB}/mlx5: QP/XRCD commands via mlx5 ifc'
Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/qp.c