RDMA/addr: Fix return of uninitialized ret value
authorSean Hefty <sean.hefty@intel.com>
Thu, 17 Mar 2011 23:35:39 +0000 (23:35 +0000)
committerRoland Dreier <roland@purestorage.com>
Fri, 18 Mar 2011 00:00:19 +0000 (17:00 -0700)
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>
drivers/infiniband/core/addr.c

index e0ef5fd..4ffc224 100644 (file)
@@ -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;
        }