summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core
diff options
context:
space:
mode:
authorSean Hefty <sean.hefty@intel.com>2011-03-18 00:35:39 +0100
committerRoland Dreier <roland@purestorage.com>2011-03-18 01:00:19 +0100
commit1bdd6384c2b43cac9be8d6f2c298bcf39f50cd07 (patch)
tree13f142bfd526a8682167e0bc43e1472ee9a08ded /drivers/infiniband/core
parentMerge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/epi... (diff)
downloadlinux-1bdd6384c2b43cac9be8d6f2c298bcf39f50cd07.tar.xz
linux-1bdd6384c2b43cac9be8d6f2c298bcf39f50cd07.zip
RDMA/addr: Fix return of uninitialized ret value
Commit b23dd4fe42b4 ("ipv4: Make output route lookup return rtable directly") resulted in leaving ret uninitialized, where it may later be returned. Signed-off-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/core')
-rw-r--r--drivers/infiniband/core/addr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/addr.c b/drivers/infiniband/core/addr.c
index e0ef5fdc361e..4ffc224faa7f 100644
--- a/drivers/infiniband/core/addr.c
+++ b/drivers/infiniband/core/addr.c
@@ -204,7 +204,7 @@ static int addr4_resolve(struct sockaddr_in *src_in,
/* If the device does ARP internally, return 'done' */
if (rt->dst.dev->flags & IFF_NOARP) {
- rdma_copy_addr(addr, rt->dst.dev, NULL);
+ ret = rdma_copy_addr(addr, rt->dst.dev, NULL);
goto put;
}