]> git.baikalelectronics.ru Git - kernel.git/commit
infiniband: call ipv6 route lookup via the stub interface
authorPaolo Abeni <pabeni@redhat.com>
Fri, 28 Apr 2017 09:20:01 +0000 (11:20 +0200)
committerDoug Ledford <dledford@redhat.com>
Fri, 28 Apr 2017 16:55:17 +0000 (12:55 -0400)
commitafac9baa88c75fb8d234f0d807e0e8bd5a9c2c54
tree069c4b2e2b7ba132319f0e06417990a170e66b2b
parentcd40f99a8f6d5d3d6dac50a89d79642ca69a4798
infiniband: call ipv6 route lookup via the stub interface

The infiniband address handle can be triggered to resolve an ipv6
address in response to MAD packets, regardless of the ipv6
module being disabled via the kernel command line argument.

That will cause a call into the ipv6 routing code, which is not
initialized, and a conseguent oops.

This commit addresses the above issue replacing the direct lookup
call with an indirect one via the ipv6 stub, which is properly
initialized according to the ipv6 status (e.g. if ipv6 is
disabled, the routing lookup fails gracefully)

Cc: stable@vger.kernel.org # 3.12+
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/addr.c