hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/arch/mips/include/asm/termios.h
....@@ -32,7 +32,7 @@
3232 unsigned short iflag, oflag, cflag, lflag;
3333 unsigned int err;
3434
35
- if (!access_ok(VERIFY_READ, termio, sizeof(struct termio)))
35
+ if (!access_ok(termio, sizeof(struct termio)))
3636 return -EFAULT;
3737
3838 err = __get_user(iflag, &termio->c_iflag);
....@@ -61,7 +61,7 @@
6161 {
6262 int err;
6363
64
- if (!access_ok(VERIFY_WRITE, termio, sizeof(struct termio)))
64
+ if (!access_ok(termio, sizeof(struct termio)))
6565 return -EFAULT;
6666
6767 err = __put_user(termios->c_iflag, &termio->c_iflag);