]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Fix wrong free of blue flame register on error
authorMark Bloch <mbloch@nvidia.com>
Wed, 13 Jan 2021 12:17:03 +0000 (14:17 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 14 Jan 2021 16:51:29 +0000 (12:51 -0400)
commita049cf2490fee8c5612cd3d2efe738ff58ea9065
tree965d72727775adb4e8bcb637f1cffd72d83673fd
parent6438425f2b47676830bd8fc11b4fd82e6c9c10b2
RDMA/mlx5: Fix wrong free of blue flame register on error

If the allocation of the fast path blue flame register fails, the driver
should free the regular blue flame register allocated a statement above,
not the one that it just failed to allocate.

Fixes: cf5bb5c683e9 ("IB/mlx5: Create profile infrastructure to add and remove stages")
Link: https://lore.kernel.org/r/20210113121703.559778-6-leon@kernel.org
Reported-by: Hans Petter Selasky <hanss@nvidia.com>
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/main.c