mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
Revert "IB/core: Add support for extended query device caps"
While commit7e36ef8205("IB/core: Temporarily disable ex_query_device uverb") is correct as it makes the extended QUERY_DEVICE uverb (which came as part of commit5a77abf9a9("IB/core: Add support for extended query device caps") and commit860f10a799("IB/core: Add flags for on demand paging support")) not available to userspace, it doesn't address the initial issue regarding ib_copy_to_udata() [1][2]. Additionally, further discussions around this new uverb seems to conclude it would require a different data structure than the one currently described in <rdma/ib_user_verbs.h> [3]. Both of these issues require a revert of the changes, so this patch partially reverts commit8cdd312cfe("IB/mlx5: Implement the ODP capability query verb") and commit860f10a799("IB/core: Add flags for on demand paging support") and fully reverts commit5a77abf9a9("IB/core: Add support for extended query device caps"). [1] "Re: [PATCH v3 06/17] IB/core: Add support for extended query device caps" http://mid.gmane.org/[email protected] [2] "Re: [PATCH] IB/core: Temporarily disable ex_query_device uverb" http://mid.gmane.org/[email protected] [3] "RE: [PATCH v1 1/5] IB/uverbs: ex_query_device: answer must not depend on request's comp_mask" http://mid.gmane.org/2807E5FD2F6FDA4886F6618EAC48510E0CC12C30@CRSMSX101.amr.corp.intel.com Cc: Eli Cohen <[email protected]> Cc: Haggai Eran <[email protected]> Cc: Ira Weiny <[email protected]> Cc: Jason Gunthorpe <[email protected]> Cc: Sagi Grimberg <[email protected]> Cc: Shachar Raindel <[email protected]> Signed-off-by: Yann Droneaud <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
This commit is contained in:
parent
9d82f5eb33
commit
43c6116573
5 changed files with 42 additions and 130 deletions
|
|
@ -1707,10 +1707,7 @@ static inline int ib_copy_from_udata(void *dest, struct ib_udata *udata, size_t
|
|||
|
||||
static inline int ib_copy_to_udata(struct ib_udata *udata, void *src, size_t len)
|
||||
{
|
||||
size_t copy_sz;
|
||||
|
||||
copy_sz = min_t(size_t, len, udata->outlen);
|
||||
return copy_to_user(udata->outbuf, src, copy_sz) ? -EFAULT : 0;
|
||||
return copy_to_user(udata->outbuf, src, len) ? -EFAULT : 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue