net/mlx5: DR, Fix freeing in dr_create_rc_qp()
authorDenis Efremov <efremov@linux.com>
Mon, 1 Jun 2020 16:45:26 +0000 (19:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:50:49 +0000 (17:50 +0200)
commit9fec865dde6e19309db8f87b0fb220cf110cdd4b
tree3190090f31782d5739b69da1a80b9388a3b51b2e
parent859a0a9afee3159aeebdefa5febc0c96cf919f6b
net/mlx5: DR, Fix freeing in dr_create_rc_qp()

[ Upstream commit 47a357de2b6b706af3c9471d5042f9ba8907031e ]

Variable "in" in dr_create_rc_qp() is allocated with kvzalloc() and
should be freed with kvfree().

Fixes: 297cccebdc5a ("net/mlx5: DR, Expose an internal API to issue RDMA operations")
Cc: stable@vger.kernel.org
Signed-off-by: Denis Efremov <efremov@linux.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c