commit | 5ccbf63f87a39c279729670d2e31166844a335c6 | [log] [tgz] |
---|---|---|
author | Ariel Levkovich <lariel@mellanox.com> | Thu Apr 26 15:42:54 2018 +0300 |
committer | Doug Ledford <dledford@redhat.com> | Fri Apr 27 14:22:24 2018 -0400 |
tree | 58e78361f5595303d03bcc70d34a11b463535667 | |
parent | 4f9ca2d8686ecfdd40ca4f0294a3d94f83f05cea [diff] |
IB/uverbs: Prevent reregistration of DM_MR to regular MR This patch adds a check in the ib_uverbs_rereg_mr flow to make sure there's no attempt to rereg a device memory MR to regular MR. In such case the command will fail with -EINVAL status. fixes: be934cca9e98 ("IB/uverbs: Add device memory registration ioctl support") Signed-off-by: Ariel Levkovich <lariel@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>