diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-05-20 19:38:14 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-05-20 19:38:14 +0200 |
| commit | 204f4fde068172170c5bc22bcffd60753d583c35 (patch) | |
| tree | eb9d581ee6ccae4417169e019ffaa82d02167ade /sys/syz-extract/linux.go | |
| parent | 4afdfa205b55633e7eb9db03a9d099d7aa324801 (diff) | |
sys/syz-extract: fix for full paths
pkg/ast now uses full paths since 554f8f39c57d91c1be8724cf4054424c9fb5f151.
Fix syz-extract accordingly.
Diffstat (limited to 'sys/syz-extract/linux.go')
| -rw-r--r-- | sys/syz-extract/linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/syz-extract/linux.go b/sys/syz-extract/linux.go index 29d99d1de..7760bcb0f 100644 --- a/sys/syz-extract/linux.go +++ b/sys/syz-extract/linux.go @@ -134,7 +134,7 @@ func (*linux) prepareArch(arch *Arch) error { } func (*linux) processFile(arch *Arch, info *compiler.ConstInfo) (map[string]uint64, map[string]bool, error) { - if info.File == "dev_kvm.txt" && arch.target.Arch == "arm" { + if strings.HasSuffix(info.File, "_kvm.txt") && arch.target.Arch == "arm" { // Hack: KVM is not supported on ARM anymore. We may want some more official support // for marking descriptions arch-specific, but so far this combination is the only one. // Note: syz-sysgen also ignores this file for arm. |
