Skip to content

Commit 8870cfc

Browse files
authored
Merge pull request #5609 from eschnett/patch-2
Avoid integer overflow in dynamic_riscv64.c
2 parents d40e19e + 55e853a commit 8870cfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/others/dynamic_riscv64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ struct riscv_hwprobe {
9999
#define RISCV_HWPROBE_IMA_V (1 << 2)
100100
#define RISCV_HWPROBE_EXT_ZFH (1 << 27)
101101
#define RISCV_HWPROBE_EXT_ZVFH (1 << 30)
102-
#define RISCV_HWPROBE_EXT_ZVFBFWMA (1 << 54)
102+
#define RISCV_HWPROBE_EXT_ZVFBFWMA (1ULL << 54)
103103

104104
#ifndef NR_riscv_hwprobe
105105
#ifndef NR_arch_specific_syscall

0 commit comments

Comments
 (0)