From: Herbert Xu Date: Fri, 7 Nov 2014 13:27:08 +0000 (+0800) Subject: ipv4: Use standard iovec primitive in raw_probe_proto_opt X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~235^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32b5913a931fd753faf3d4e1124b2bc2edb364da;p=pandora-kernel.git ipv4: Use standard iovec primitive in raw_probe_proto_opt The function raw_probe_proto_opt tries to extract the first two bytes from the user input in order to seed the IPsec lookup for ICMP packets. In doing so it's processing iovec by hand and overcomplicating things. This patch replaces the manual iovec processing with a call to memcpy_fromiovecend. Signed-off-by: Herbert Xu Signed-off-by: David S. Miller --- Reading git-diff-tree failed