forked from Bananymous/banan-os
Kernel: Fix sizeof check for sys_tc{set,get}attr
This commit is contained in:
parent
8956835d95
commit
39667de662
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue