IB/core: Namespace is mandatory input for address resolution
authorMoni Shoua <monis@mellanox.com>
Tue, 23 May 2017 07:48:44 +0000 (10:48 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2017 22:08:05 +0000 (15:08 -0700)
commitdd0d6509cbf4ad5624300083ed7f98dcdac55e2a
treef301818d5f44b0ae02a312449bb2e428f03e7f7d
parent5c2717f4154502779e696b303cf8dcfb94b2e5f5
IB/core: Namespace is mandatory input for address resolution

commit bebb2a473a43c8f84a8210687d1cbdde503046d7 upstream.

In function addr_resolve() the namespace is a required input parameter
and not an output. It is passed later for searching the routing table
and device addresses. Also, it shouldn't be copied back to the caller.

Fixes: 565edd1d5555 ('IB/addr: Pass network namespace as a parameter')
Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/core/addr.c