Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/arm/cpu_features.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static void scan_auxv(unsigned long *hwcap, unsigned long *hwcap2)
int filled = 0;
int i;

fd = open("/proc/self/auxv", O_RDONLY);
fd = open("/proc/self/auxv", O_RDONLY | O_CLOEXEC);
if (fd < 0)
return;

Expand Down Expand Up @@ -149,7 +149,7 @@ static bool arm64_cpu_is_neoverse_v_class(void)
u32 part;

fd = open("/sys/devices/system/cpu/cpu0/regs/identification/midr_el1",
O_RDONLY);
O_RDONLY | O_CLOEXEC);
if (fd < 0)
return false;
do {
Expand Down
Loading