]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: Fix .dtbauto section number for error reporting
authoranonymix007 <48598263+anonymix007@users.noreply.github.com>
Wed, 6 Nov 2024 20:04:18 +0000 (23:04 +0300)
committeranonymix007 <48598263+anonymix007@users.noreply.github.com>
Thu, 7 Nov 2024 19:52:29 +0000 (22:52 +0300)
src/boot/pe.c

index 00739a7c7422c906df046a9cfb1dec8051eb04eb..9af6ca0dd4470b04d3ceb6cae595236084dff986 100644 (file)
@@ -253,7 +253,7 @@ static void pe_locate_sections_internal(
                                                   j->VirtualSize,
                                                   device_table,
                                                   device,
-                                                  i))
+                                                  (PTR_TO_SIZE(j) - PTR_TO_SIZE(section_table)) / sizeof(*j)))
                                         continue;
                         }