From: Xin Long Date: Wed, 3 Feb 2016 15:33:30 +0000 (+0800) Subject: sctp: translate network order to host order when users get a hmacid X-Git-Tag: v3.2.78~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=152e8fcbc0e7102a037b0dfd7551bb95e289ce16;p=pandora-kernel.git sctp: translate network order to host order when users get a hmacid commit 7a84bd46647ff181eb2659fdc99590e6f16e501d upstream. Commit ed5a377d87dc ("sctp: translate host order to network order when setting a hmacid") corrected the hmacid byte-order when setting a hmacid. but the same issue also exists on getting a hmacid. We fix it by changing hmacids to host order when users get them with getsockopt. Fixes: Commit ed5a377d87dc ("sctp: translate host order to network order when setting a hmacid") Signed-off-by: Xin Long Acked-by: Marcelo Ricardo Leitner Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed