From: Thomas Graf Date: Tue, 16 Dec 2014 20:05:21 +0000 (+0100) Subject: ip_tunnel: Add missing validation of encap type to ip_tunnel_encap_setup() X-Git-Tag: omap-for-v3.20/drop-legacy-3517~36^2~15 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1fb521f7d94c35e278d76a9198f078223f26799;p=pandora-kernel.git ip_tunnel: Add missing validation of encap type to ip_tunnel_encap_setup() The encap->type comes straight from Netlink. Validate it against max supported encap types just like ip_encap_hlen() already does. Fixes: a8c5f9 ("ip_tunnel: Ops registration for secondary encap (fou, gue)") Signed-off-by: Thomas Graf Signed-off-by: David S. Miller --- Reading git-diff-tree failed