Kernel: Fix sizeof check for sys_tc{set,get}attr

This commit is contained in:
Bananymous 2024-09-14 21:17:03 +03:00
parent 8956835d95
commit 39667de662
1 changed files with 2 additions and 2 deletions

View File

@ -362,7 +362,7 @@ namespace Kernel
{
LockGuard _(m_process_lock);
TRY(validate_pointer_access(termios, sizeof(termios), true));
TRY(validate_pointer_access(termios, sizeof(struct termios), true));
auto inode = TRY(m_open_file_descriptors.inode_of(fildes));
if (!inode->is_tty())
@ -381,7 +381,7 @@ namespace Kernel
LockGuard _(m_process_lock);
TRY(validate_pointer_access(termios, sizeof(termios), false));
TRY(validate_pointer_access(termios, sizeof(struct termios), false));
auto inode = TRY(m_open_file_descriptors.inode_of(fildes));
if (!inode->is_tty())