Skip to content

Commit 8960cf4

Browse files
ioannisggalak
authored andcommitted
arch: arm: mpu: fix variable type
Fix the type of struct field index to int, to avoid loss of precision, in case the variable holds the value -EINVAL (in the case of errors in MPU configuration). Signed-off-by: Ioannis Glaropoulos <[email protected]>
1 parent cf7ba23 commit 8960cf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/core/cortex_m/mpu/arm_mpu_v8_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* is allowed.
1919
*/
2020
struct dynamic_region_info {
21-
u8_t index;
21+
int index;
2222
struct arm_mpu_region region_conf;
2323
};
2424

0 commit comments

Comments
 (0)