Skip to content

Commit d4a8b42

Browse files
pratyaiGabrielMajeri
authored andcommitted
map_size is already the required size in bytes for the buffer.
1 parent ec44765 commit d4a8b42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/table/boot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ impl BootServices {
193193
};
194194
assert_eq!(status, Status::BUFFER_TOO_SMALL);
195195

196-
map_size * entry_size
196+
map_size
197197
}
198198

199199
/// Retrieves the current memory map.

0 commit comments

Comments
 (0)