From 016f6be69bd46b3406e8a94e8ecee63a817c3c0a Mon Sep 17 00:00:00 2001 From: Jamie Liu Date: Tue, 14 Jun 2016 15:55:19 -0700 Subject: stress: fix "assignment to entry in nil map" panic --- tools/syz-stress/stress.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/syz-stress/stress.go b/tools/syz-stress/stress.go index 8bd56583a..defcb38a3 100644 --- a/tools/syz-stress/stress.go +++ b/tools/syz-stress/stress.go @@ -141,6 +141,7 @@ func buildCallList() map[*sys.Call]bool { calls, err := host.DetectSupportedSyscalls() if err != nil { log.Printf("failed to detect host supported syscalls: %v", err) + calls = make(map[*sys.Call]bool) for _, c := range sys.Calls { calls[c] = true } -- cgit mrf-deployment