From: Sean Hefty Date: Thu, 17 Mar 2011 23:35:39 +0000 (+0000) Subject: RDMA/addr: Fix return of uninitialized ret value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1bdd6384c2b43cac9be8d6f2c298bcf39f50cd07;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Roland Dreier --- 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; }