]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/cma: Handle global/non-linklocal IPv6 addresses in cma_check_linklocal()
authorSomnath Kotur <somnath.kotur@emulex.com>
Sat, 16 Nov 2013 04:00:01 +0000 (09:30 +0530)
committerRoland Dreier <roland@purestorage.com>
Thu, 23 Jan 2014 06:49:17 +0000 (22:49 -0800)
commit565fa5174aa5c8c8368c9fd4292d46cc1278b5a9
tree369a593837786ab8f5e437415057337bc602ed47
parenta78f8fe1e56d0a619fce51c5c3d3bac8bbfa3933
RDMA/cma: Handle global/non-linklocal IPv6 addresses in cma_check_linklocal()

If addr is not a linklocal address, the code incorrectly fails to
return and ends up assigning the scope ID to the scope id of the
address, which is wrong.  Fix by checking if it's a link local address
first, and immediately return 0 if not.

Signed-off-by: Somnath Kotur <somnath.kotur@emulex.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/cma.c