diff options
| author | Dan Carpenter <[email protected]> | 2021-10-13 08:06:45 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2021-10-13 16:59:47 +0000 |
| commit | 663991f32857b3b63c94c97de9dbb0ec8600144f (patch) | |
| tree | d79af98a7f793aa428b5bc0a52bd19f8c9ee2237 /lib/string_helpers.c | |
| parent | IB/hfi1: Fix abba locking issue with sc_disable() (diff) | |
| download | kernel-663991f32857b3b63c94c97de9dbb0ec8600144f.tar.gz kernel-663991f32857b3b63c94c97de9dbb0ec8600144f.zip | |
RDMA/rdmavt: Fix error code in rvt_create_qp()
Return negative -ENOMEM instead of positive ENOMEM. Returning a postive
value will cause an Oops because it becomes an ERR_PTR() in the
create_qp() function.
Fixes: 514aee660df4 ("RDMA: Globally allocate and release QP memory")
Link: https://lore.kernel.org/r/20211013080645.GD6010@kili
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
