diff options
Diffstat (limited to 'arch/x86/net/bpf_jit_comp.c')
-rw-r--r-- | arch/x86/net/bpf_jit_comp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/net/bpf_jit_comp.c b/arch/x86/net/bpf_jit_comp.c index eb661fff94d7..b725154182cc 100644 --- a/arch/x86/net/bpf_jit_comp.c +++ b/arch/x86/net/bpf_jit_comp.c | |||
@@ -1223,7 +1223,7 @@ skip_init_addrs: | |||
1223 | * may converge on the last pass. In such case do one more | 1223 | * may converge on the last pass. In such case do one more |
1224 | * pass to emit the final image | 1224 | * pass to emit the final image |
1225 | */ | 1225 | */ |
1226 | for (pass = 0; pass < 10 || image; pass++) { | 1226 | for (pass = 0; pass < 20 || image; pass++) { |
1227 | proglen = do_jit(prog, addrs, image, oldproglen, &ctx); | 1227 | proglen = do_jit(prog, addrs, image, oldproglen, &ctx); |
1228 | if (proglen <= 0) { | 1228 | if (proglen <= 0) { |
1229 | image = NULL; | 1229 | image = NULL; |
@@ -1250,6 +1250,7 @@ skip_init_addrs: | |||
1250 | } | 1250 | } |
1251 | } | 1251 | } |
1252 | oldproglen = proglen; | 1252 | oldproglen = proglen; |
1253 | cond_resched(); | ||
1253 | } | 1254 | } |
1254 | 1255 | ||
1255 | if (bpf_jit_enable > 1) | 1256 | if (bpf_jit_enable > 1) |