Skip to content

Commit bcadb65

Browse files
Cao jinJonathan Corbet
authored andcommitted
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). Signed-off-by: Cao jin <jojing64@gmail.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com> Link: https://lore.kernel.org/r/20210127084911.63438-1-jojing64@gmail.com Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 187623b commit bcadb65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Documentation/x86/boot.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ Protocol: 2.09+
851851
struct setup_data {
852852
__u64 next = 0 or <addr_of_next_setup_data_struct>;
853853
__u32 type = SETUP_INDIRECT;
854-
__u32 len = sizeof(setup_data);
854+
__u32 len = sizeof(setup_indirect);
855855
__u8 data[sizeof(setup_indirect)] = struct setup_indirect {
856856
__u32 type = SETUP_INDIRECT | SETUP_E820_EXT;
857857
__u32 reserved = 0;

0 commit comments

Comments
 (0)