kernel/lib/ts_bm.c
.. .. @@ -60,10 +60,12 @@ 60 60 struct ts_bm *bm = ts_config_priv(conf); 61 61 unsigned int i, text_len, consumed = state->offset; 62 62 const u8 *text; 63 - int shift = bm->patlen - 1, bs;63 + int bs;64 64 const u8 icase = conf->flags & TS_IGNORECASE; 65 65 66 66 for (;;) { 67 + int shift = bm->patlen - 1;68 +67 69 text_len = conf->get_next_block(consumed, &text, conf, state); 68 70 69 71 if (unlikely(text_len == 0))