Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pyverbs: Protect the write and read methods of MR
For the implicit MR registrations the internal MR's buffer doesn't have to be allocated (controlled by the length argument). Therefore we should protect the write and read methods of MR object by checking before the operation if the buf attribute and the passed arguments are valid. Signed-off-by: Itay Aveksis <itayav@mellanox.com> Signed-off-by: Edward Srouji <edwards@mellanox.com>
- Loading branch information