diff options
author | Sean Hefty <sean.hefty@intel.com> | 2006-07-25 20:52:01 +0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-08-03 20:44:22 +0400 |
commit | 75df23e229acab85b704f4603bdf5efdc7960e6a (patch) | |
tree | 3c742120029269d796ae6053ea3477d354a1241d /drivers/infiniband/core | |
parent | 69e9fbb460fa8766428960439841ffcf565032c1 (diff) | |
download | linux-75df23e229acab85b704f4603bdf5efdc7960e6a.tar.xz |
IB/cm: Fix error handling in ib_send_cm_req
Report error code rather than success (0) on failure allocating
timewait_info in ib_send_cm_req().
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/core')
-rw-r--r-- | drivers/infiniband/core/cm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c index f85c97f7500a..0de335b7bfc2 100644 --- a/drivers/infiniband/core/cm.c +++ b/drivers/infiniband/core/cm.c @@ -975,8 +975,10 @@ int ib_send_cm_req(struct ib_cm_id *cm_id, cm_id_priv->timewait_info = cm_create_timewait_info(cm_id_priv-> id.local_id); - if (IS_ERR(cm_id_priv->timewait_info)) + if (IS_ERR(cm_id_priv->timewait_info)) { + ret = PTR_ERR(cm_id_priv->timewait_info); goto out; + } ret = cm_init_av_by_path(param->primary_path, &cm_id_priv->av); if (ret) |