mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 16:06:45 +07:00
RDMA/addr: Fix return of uninitialized ret value
Commit b23dd4fe42
("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>
This commit is contained in:
parent
7b7adc4a01
commit
1bdd6384c2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user