summaryrefslogtreecommitdiff
path: root/kernel/socket.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-11-13 16:09:45 +0100
committerAnton Kling <anton@kling.gg>2023-11-13 16:09:45 +0100
commit01c13017bf595935022d31eaaa0349bb60233fee (patch)
tree1139983aaee80cb76270ffa18f13cc1c6a47e087 /kernel/socket.c
parent761f57a1b167abeda40c5cc0fce801a4230f2400 (diff)
Kernel: Remove kmalloc_eternal
I would like to be able to free some of those objects but I have not decided upon how that will be done yet. Even if not freeded the added complexity of having two functions does not make the extra bytes saved worth it IMO.
Diffstat (limited to 'kernel/socket.c')
-rw-r--r--kernel/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/socket.c b/kernel/socket.c
index 3f78720..65ba771 100644
--- a/kernel/socket.c
+++ b/kernel/socket.c
@@ -272,7 +272,7 @@ int socket(int domain, int type, int protocol) {
if (!(AF_UNIX == domain || AF_INET == domain))
return -EINVAL;
- SOCKET *new_socket = kmalloc_eternal(sizeof(SOCKET));
+ SOCKET *new_socket = kmalloc(sizeof(SOCKET));
vfs_inode_t *inode = vfs_create_inode(
0 /*inode_num*/, FS_TYPE_UNIX_SOCKET, 0 /*has_data*/, 1 /*can_write*/,
1 /*is_open*/, new_socket /*internal_object*/, 0 /*file_size*/,