diff options
-rw-r--r-- | Kernel/KBuffer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/KBuffer.h b/Kernel/KBuffer.h index 0b529b821e..dd39544e06 100644 --- a/Kernel/KBuffer.h +++ b/Kernel/KBuffer.h @@ -56,6 +56,7 @@ public: static NonnullRefPtr<KBufferImpl> copy(const void* data, size_t size, u8 access, const char* name) { auto buffer = create_with_size(size, access, name); + buffer->region().commit(); memcpy(buffer->data(), data, size); return buffer; } |