Skip to content
Commit 5462eddd authored by Somnath Kotur's avatar Somnath Kotur Committed by Roland Dreier
Browse files

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: default avatarSomnath Kotur <somnath.kotur@emulex.com>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent 7e22e911
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment