Skip to contentSkip to conversation

Documentation/x86/boot.rst: Correct the example of SETUP_INDIRECT

PATCH Applied Cao jin 3 participants 3 messages Jan 27, 2021 – Jan 28, 2021 Documentation

lore
Share & tools
lore

Cao jin

author
#0 lore raw

PATCH 1/1 Documentation/x86/boot.rst: Correct the example of SETUP_INDIRECT

struct setup_data.len is the length of data field. In case of SETUP_INDIRECT, it should be sizeof(setup_indirect).

---
 Documentation/x86/boot.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/x86/boot.rst +1 -1
index abb9fc164657..fc844913dece 100644
@@ -851,7 +851,7 @@ Protocol:	2.09+
     struct setup_data {
       __u64 next = 0 or <addr_of_next_setup_data_struct>;
       __u32 type = SETUP_INDIRECT;
-      __u32 len = sizeof(setup_data);
+      __u32 len = sizeof(setup_indirect);
       __u8 data[sizeof(setup_indirect)] = struct setup_indirect {
         __u32 type = SETUP_INDIRECT | SETUP_E820_EXT;
         __u32 reserved = 0;
Signature · 1 line
2.29.2