Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1bdd6384 authored by Sean Hefty's avatar Sean Hefty Committed by Roland Dreier
Browse files

RDMA/addr: Fix return of uninitialized ret value



Commit b23dd4fe ("ipv4: Make output route lookup return rtable
directly") resulted in leaving ret uninitialized, where it may later
be returned.

Signed-off-by: default avatarSean Hefty <sean.hefty@intel.com>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent 7b7adc4a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}