diff options
author | Dan Carpenter <[email protected]> | 2018-02-01 13:01:48 +0300 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2018-02-01 15:24:32 -0700 |
commit | f34727a1351362c8f349d29efcd0e72702571e6a (patch) | |
tree | 7894d3a36ca944d28eb2368004e7ffa06ae4cfb8 /net/unix/sysctl_net_unix.c | |
parent | 0da6550366b8d3a221d4a927e56efec82049d518 (diff) |
RDMA/nldev: missing error code in nldev_res_get_doit()
We should return -ENOMEM if the allocation fails. The current code
accidentally returns success.
Fixes: bf3c5a93c523 ("RDMA/nldev: Provide global resource utilization")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions