From 55aa55c24fe77aae07d530662f91b4d50c4990f0 Mon Sep 17 00:00:00 2001 From: Chuck Silvers Date: Wed, 30 Jun 2021 02:48:56 -0700 Subject: executor: initialize scope in fault_ioc_info The "scope" field of struct fault_ioc_info is an input to the ioctl, so initialize it to FAULT_SCOPE_LWP to match other fault_ioc_* usage. --- executor/common_bsd.h | 1 + 1 file changed, 1 insertion(+) (limited to 'executor') diff --git a/executor/common_bsd.h b/executor/common_bsd.h index 398d402fb..131ab0764 100644 --- a/executor/common_bsd.h +++ b/executor/common_bsd.h @@ -73,6 +73,7 @@ static int fault_injected(int fd) struct fault_ioc_disable dis; int res; + info.scope = FAULT_SCOPE_LWP; if (ioctl(fd, FAULT_IOC_GETINFO, &info) != 0) fail("FAULT_IOC_GETINFO failed"); res = (info.nfaults > 0); -- cgit mrf-deployment