Message ID | 1578506740-22188-6-git-send-email-yishaih@mellanox.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | ca95c1411198c2d87217c19d44571052cdc94725 |
Delegated to: | Jason Gunthorpe |
Headers | show |
Series | Relaxed ordering memory regions | expand |
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 08cc7dc..a104e1c 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -4305,6 +4305,9 @@ static inline int ib_check_mr_access(int flags) !(flags & IB_ACCESS_LOCAL_WRITE)) return -EINVAL; + if (flags & ~IB_ACCESS_SUPPORTED) + return -EINVAL; + return 0; }