diff options
| author | Simon Rettberg | 2022-02-08 10:46:04 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2022-03-04 12:04:14 +0100 |
| commit | c70bade50e275f901e63d7564e99a7bdabe83509 (patch) | |
| tree | d5f16ed7b16c8b7b5f8f25fa5e54fda72a693b8b /src/utils/include/c.h | |
| parent | README.md: State that qcow2 is read only (diff) | |
| download | xloop-c70bade50e275f901e63d7564e99a7bdabe83509.tar.gz xloop-c70bade50e275f901e63d7564e99a7bdabe83509.tar.xz xloop-c70bade50e275f901e63d7564e99a7bdabe83509.zip | |
Don't add byte offset to kmapped pointer
While the kunmap functions always round down to the current page,
and currently, we never map a region larger than a page, it should
be safer to do the pointer arithmetic after we acquired the mapped
pointer, to avoid the risk of ever passing an invalid pointer
to kunmap.
Diffstat (limited to 'src/utils/include/c.h')
0 files changed, 0 insertions, 0 deletions
