]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/cxgb4: Fix missing error code in create_qp()
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Tue, 1 Jun 2021 11:07:49 +0000 (19:07 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 4 Jun 2021 14:55:34 +0000 (11:55 -0300)
commit376957597902cc6f013fed2e6ce7e2a30875e7d0
tree6d1d4521de980432fc064b2de296a7edcce1d64a
parenta61077a48f5057e8ab363fe966a4ebede0a629a4
RDMA/cxgb4: Fix missing error code in create_qp()

The error code is missing in this code scenario so 0 will be returned. Add
the error code '-EINVAL' to the return value 'ret'.

Eliminates the follow smatch warning:

drivers/infiniband/hw/cxgb4/qp.c:298 create_qp() warn: missing error code 'ret'.

Link: https://lore.kernel.org/r/1622545669-20625-1-git-send-email-jiapeng.chong@linux.alibaba.com
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/cxgb4/qp.c