]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:49:20 +0000 (17:49 +0200)
commit738f369bf012f557ed165efd2dbfc976fec278b6
tree9709cab6785327348a7c31d593b7e8b01d366dbe
parent6326202d7a9b39203d6e5f3873750d91fb2b0aaf
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