commit | 32b5913a931fd753faf3d4e1124b2bc2edb364da | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Fri Nov 07 21:27:08 2014 +0800 |
committer | David S. Miller <davem@davemloft.net> | Mon Nov 10 14:25:35 2014 -0500 |
tree | e65937a86f9af8eeac60db99a8ad1720d312998a | |
parent | 1ef8019be8799c39f316a772ffdd705c46029752 [diff] |
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 <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>