Skip to content

Commit

Permalink
RDMA/addr: Fix return of uninitialized ret value
Browse files Browse the repository at this point in the history
Commit b23dd4f ("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>
  • Loading branch information
Sean Hefty authored and Roland Dreier committed Mar 18, 2011
1 parent 7b7adc4 commit 1bdd638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/core/addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1bdd638

Please sign in to comment.