From: Wei Zhang Date: Sat, 28 Jun 2014 19:34:53 +0000 (-0700) Subject: openvswitch: supply a dummy err_handler of gre_cisco_protocol to prevent kernel crash X-Git-Tag: omap-for-v3.17/fixes-against-rc2~289^2~39^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0bb8c44ed5cfcc56b571758ed966ee48779024c;p=pandora-kernel.git openvswitch: supply a dummy err_handler of gre_cisco_protocol to prevent kernel crash When use gre vport, openvswitch register a gre_cisco_protocol but does not supply a err_handler with it. The gre_cisco_err() in net/ipv4/gre_demux.c expect err_handler be provided with the gre_cisco_protocol implementation, and call ->err_handler() without existence check, cause the kernel crash. This patch provide a err_handler to fix this bug. This bug introduced by commit aa310701e787087d (openvswitch: Add gre tunnel support.) Signed-off-by: Wei Zhang Signed-off-by: Jesse Gross Signed-off-by: Pravin B Shelar --- Reading git-diff-tree failed