diff options
author | Yu Liao <[email protected]> | 2023-08-26 15:16:53 +0800 |
---|---|---|
committer | Dave Jiang <[email protected]> | 2023-09-25 12:25:30 -0700 |
commit | 33908660e814203e996f6e775d033c5c32fcf9a7 (patch) | |
tree | e06b0e18b16a70f05adfac268f523386f900ee00 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 6465e260f48790807eef06b583b38ca9789b6072 (diff) |
ACPI: NFIT: Fix incorrect calculation of idt size
acpi_nfit_interleave's field 'line_offset' is switched to flexible array [1],
but sizeof_idt() still calculates the size in the form of 1-element array.
Therefore, fix incorrect calculation in sizeof_idt().
[1] https://lore.kernel.org/lkml/2652195.BddDVKsqQX@kreacher/
Fixes: 2a5ab99847bd ("ACPICA: struct acpi_nfit_interleave: Replace 1-element array with flexible array")
Cc: [email protected] # v6.4+
Signed-off-by: Yu Liao <[email protected]>
Reviewed-by: Dave Jiang <[email protected]>
Reviewed-by: Ira Weiny <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dave Jiang <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions