Re: [PATCH rdma-rc 2/2] IB/mlx5: Don't clean uninitialized UMR resources

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 20, 2018 at 03:45:37PM +0200, Leon Romanovsky wrote:
> From: Mark Bloch <markb@xxxxxxxxxxxx>
> 
> In case we failed to create UMR resources, mark them as invalid so we
> won't try to destroy them on the unwind path.
> 
> Add the relevant checks to destroy_umrc_res(), this is done for the
> unlikely event ib_register_device() or create_umr_res() err out and we
> try to destroy invalid objects.
> 
> Fixes: 42cea83f9524 ("IB/mlx5: Fix cleanup order on unload")
> Signed-off-by: Mark Bloch <markb@xxxxxxxxxxxx>
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
> ---
>  drivers/infiniband/hw/mlx5/main.c | 12 +++++++++---
>  drivers/infiniband/hw/mlx5/mr.c   |  3 +++
>  2 files changed, 12 insertions(+), 3 deletions(-)

applied to for-next

Thanks,
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux