Re: [PATCH] IB/mlx4: Fix an error handling path in 'mlx4_ib_rereg_user_mr()'

From: Jason Gunthorpe
Date: Mon Jun 11 2018 - 14:45:14 EST


On Mon, Jun 11, 2018 at 08:15:11PM +0200, Christophe Jaillet wrote:
> Before returning -EPERM we should release some resources, as already done
> in the other error handling path of the function.
>
> Fixes: d8f9cc328c88 ("IB/mlx4: Mark user MR as writable if actual virtual memory is writable")
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
> ---
> drivers/infiniband/hw/mlx4/mr.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)

Applied to for-rc, thanks

Jason