]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Fix an error handling path in 'mlx4_ib_rereg_user_mr()'
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Mon, 11 Jun 2018 18:15:11 +0000 (20:15 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 11 Jun 2018 18:43:41 +0000 (12:43 -0600)
commit6d16a9d8ca7cca333feb8379300dc7c52a8a3a5e
treea0f0646be188fa64044828964c64db81bc868217
parent1d2b86ae0aa4cd6c7ccc00b05ec61bc070410562
IB/mlx4: Fix an error handling path in 'mlx4_ib_rereg_user_mr()'

Before returning -EPERM we should release some resources, as already done
in the other error handling path of the function.

Fixes: 7d2bc3c5010f ("IB/mlx4: Mark user MR as writable if actual virtual memory is writable")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx4/mr.c