From: Markos Chandras Date: Mon, 23 Jun 2014 09:38:56 +0000 (+0100) Subject: MIPS: bpf: Drop update_on_xread and always initialize the X register X-Git-Tag: omap-for-v3.16/fixes-rc4~42^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5bb48b0553d75918094c5a6f7b60a4359887218;p=pandora-kernel.git MIPS: bpf: Drop update_on_xread and always initialize the X register Previously, update_on_xread() only set the reset flag if SEEN_X hasn't been set already. However, SEEN_X is used to indicate that X is used as destination or source register so there are some cases where X is only used as source register and we really need to make sure that it has been initialized in time. As a result of which, drop this function and always set X to zero if it's used in any of the opcodes. Signed-off-by: Markos Chandras Cc: David S. Miller Cc: Daniel Borkmann Cc: Alexei Starovoitov Cc: netdev@vger.kernel.org Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/7133/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed