Skip to content

Commit a9c2be4

Browse files
committed
Merge tag 'libnvdimm-fixes-6.6-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm
Pull libnvdimm fix from Dave Jiang: - Fix incorrect calculation of idt size in NFIT * tag 'libnvdimm-fixes-6.6-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm: ACPI: NFIT: Fix incorrect calculation of idt size
2 parents 8f1b460 + 3390866 commit a9c2be4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/nfit/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ static size_t sizeof_idt(struct acpi_nfit_interleave *idt)
855855
{
856856
if (idt->header.length < sizeof(*idt))
857857
return 0;
858-
return sizeof(*idt) + sizeof(u32) * (idt->line_count - 1);
858+
return sizeof(*idt) + sizeof(u32) * idt->line_count;
859859
}
860860

861861
static bool add_idt(struct acpi_nfit_desc *acpi_desc,

0 commit comments

Comments
 (0)