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-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c9c53c5ef6ded65dfc624e3962d5e15f8cfd4c6;p=pandora-kernel.git ipv4: Use standard iovec primitive in raw_probe_proto_opt commit 32b5913a931fd753faf3d4e1124b2bc2edb364da upstream. 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 Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed