OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f25e3b
)
RDMA/rxe: Cleanup mr_check_range
author
Bob Pearson
<rpearsonhpe@gmail.com>
Thu, 19 Jan 2023 23:59:32 +0000
(17:59 -0600)
committer
Jason Gunthorpe
<jgg@nvidia.com>
Thu, 26 Jan 2023 19:04:44 +0000
(15:04 -0400)
Remove blank lines and replace EFAULT by EINVAL when an invalid
mr type is used.
Link:
https://lore.kernel.org/r/20230119235936.19728-2-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_mr.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/sw/rxe/rxe_mr.c
b/drivers/infiniband/sw/rxe/rxe_mr.c
index
072eac4
..
632ee1e
100644
(file)
--- a/
drivers/infiniband/sw/rxe/rxe_mr.c
+++ b/
drivers/infiniband/sw/rxe/rxe_mr.c
@@
-26,8
+26,6
@@
u8 rxe_get_next_key(u32 last_key)
int mr_check_range(struct rxe_mr *mr, u64 iova, size_t length)
{
-
-
switch (mr->ibmr.type) {
case IB_MR_TYPE_DMA:
return 0;
@@
-41,7
+39,7
@@
int mr_check_range(struct rxe_mr *mr, u64 iova, size_t length)
default:
rxe_dbg_mr(mr, "type (%d) not supported\n", mr->ibmr.type);
- return -E
FAULT
;
+ return -E
INVAL
;
}
}