]> git.karo-electronics.de Git - karo-tx-linux.git/commit
RDMA/cxgb4: Fix error handling in create_qp()
authorEmil Goode <emilgoode@gmail.com>
Sun, 19 Aug 2012 17:59:40 +0000 (17:59 +0000)
committerRoland Dreier <roland@purestorage.com>
Tue, 18 Sep 2012 17:54:01 +0000 (10:54 -0700)
commit74f918a806bdf5d0cc552bacaa14b6129cdc81b9
tree943222c05ac4c9b8306b0fe5dd0e050432a31f85
parent92dd6c3d4d4e0a26c9bb987b3f2f08c1da86d9ce
RDMA/cxgb4: Fix error handling in create_qp()

The variable ret is assigned return values in a couple of places, but
its value is never returned.  This patch makes use of the ret variable
so that the caller get correct error codes returned.

The following changes are also introduced:

- The alloc_oc_sq function can return -ENOSYS or -ENOMEM so we want to
  get the return value from it.

- Change the label names to improve readability.

Signed-off-by: Emil Goode <emilgoode@gmail.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/cxgb4/qp.c