diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-10-02 16:30:05 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-10-02 16:30:05 -0700 |
commit | 55f835d1fdd0a5d9dca0b19a65cb748caf326f79 (patch) | |
tree | a9285798b1e93855a4bf79884042354dd9925ba2 /tools | |
parent | 0cea6472188e056673fd0ab8ff06a25dbe44ca52 (diff) | |
parent | 28ced626a3e9a2422eb41ea86fb9b3cd154c21d0 (diff) |
Merge pull request #4377 from avagin:kvm-if-flag
PiperOrigin-RevId: 335122704
Diffstat (limited to 'tools')
-rw-r--r-- | tools/checkescape/checkescape.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/checkescape/checkescape.go b/tools/checkescape/checkescape.go index dd2fcb961..f5bba9980 100644 --- a/tools/checkescape/checkescape.go +++ b/tools/checkescape/checkescape.go @@ -441,9 +441,8 @@ NextLine: // Is this an "allowed" function definition? if len(fields) >= 2 && fields[0] == "TEXT" { - if _, ok := funcsAllowed[fields[1]]; ok { - nextFunc = strings.TrimSuffix(fields[1], "(SB)") - } else { + nextFunc = strings.TrimSuffix(fields[1], "(SB)") + if _, ok := funcsAllowed[nextFunc]; !ok { nextFunc = "" // Don't record addresses. } } |