Message ID | 1312006806.2873.74.camel@edumazet-laptop |
---|---|
State | RFC, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/net/core/filter.c b/net/core/filter.c index 36f975f..89221e7 100644 --- a/net/core/filter.c +++ b/net/core/filter.c @@ -122,13 +122,11 @@ unsigned int sk_run_filter(const struct sk_buff *skb, /* * Process array of filter instructions. */ - for (;; fentry++) { -#if defined(CONFIG_X86_32) + fentry--; + for (;;) { #define K (fentry->k) -#else - const u32 K = fentry->k; -#endif + fentry++; switch (fentry->code) { case BPF_S_ALU_ADD_X: A += X; @@ -351,6 +349,7 @@ load_b: continue; } default: + unreachable(); WARN_RATELIMIT(1, "Unknown code:%u jt:%u tf:%u k:%u\n", fentry->code, fentry->jt, fentry->jf, fentry->k);