summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/max197.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-02-01 11:01:48 +0100
committerJason Gunthorpe <jgg@mellanox.com>2018-02-01 23:24:32 +0100
commitf34727a1351362c8f349d29efcd0e72702571e6a (patch)
tree7894d3a36ca944d28eb2368004e7ffa06ae4cfb8 /drivers/hwmon/max197.c
parentRDMA/hns: Fix misplaced call to hns_roce_cleanup_hem_table (diff)
downloadlinux-f34727a1351362c8f349d29efcd0e72702571e6a.tar.xz
linux-f34727a1351362c8f349d29efcd0e72702571e6a.zip
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 <dan.carpenter@oracle.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/hwmon/max197.c')
0 files changed, 0 insertions, 0 deletions