From: Somnath Kotur Date: Sat, 16 Nov 2013 04:00:01 +0000 (+0530) Subject: RDMA/cma: Handle global/non-linklocal IPv6 addresses in cma_check_linklocal() X-Git-Tag: v3.14-rc1~103^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5462eddd7a;p=pandora-kernel.git 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 Signed-off-by: Roland Dreier --- Reading git-diff-tree failed