diff options
| author | Aleksa Vuckovic <aleksav013@gmail.com> | 2022-11-26 00:22:10 +0100 |
|---|---|---|
| committer | Aleksa Vuckovic <aleksav013@gmail.com> | 2022-11-27 01:04:18 +0100 |
| commit | d43a3388a976a74ae109c5b8b5a31f82a16b45db (patch) | |
| tree | 51880414ee600ddfb3c7e3486c3d74beced36bfe /kernel/src/devices/keyboard.c | |
| parent | 5d56d1a5b4d52702eb4e4ea6f05e4b6eebf41ca8 (diff) | |
fixing issues
1) main.c: order of init (multiboot.c must be after heap & paging
because it uses heap to allocate pages for framebuffer)
2) paging.c: zeroing new pages allocated via heap
3) multiboot2.c: invalid pointer arithmetic
4) libk/string.c: check for null pointers in memcpy
5) paging: only page_lvl2 should have FLAG_HUGE
6) keyboard.c: kfree(print_buff)
Diffstat (limited to 'kernel/src/devices/keyboard.c')
| -rw-r--r-- | kernel/src/devices/keyboard.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/src/devices/keyboard.c b/kernel/src/devices/keyboard.c index 60f41b8..c5aa245 100644 --- a/kernel/src/devices/keyboard.c +++ b/kernel/src/devices/keyboard.c @@ -58,4 +58,5 @@ void keyboard_handler() char* print_buff = kalloc(len + 1); read_buff(keyboard_buffer, print_buff, len); printf("%s", print_buff); + kfree(print_buff); } |
