Skip to content
Commit 5b837b9e authored by Kevin Hao's avatar Kevin Hao Committed by Bruce Ashfield
Browse files

bpf: Fix the indention issue in grow_stack_state()

The commit 81c12119

 ("bpf: Fix accesses to uninit stack slots") was
backported from upstream, but the indention of some codes were mangled
when doing the backport. Fix them to suppress the following build error
when CONFIG_WERROR is enabled:
  kernel/bpf/verifier.c:866:5: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation]
    866 |     if (env->subprog_info[state->subprogno].stack_depth < size)
        |     ^~

Signed-off-by: default avatarKevin Hao <kexin.hao@windriver.com>
Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@gmail.com>
parent 42b62697
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment