Move EFAULT to the list of expected errors for ::read.

This commit is contained in:
levlam 2023-03-09 00:05:44 +03:00
parent 0c09070ce5
commit 7e4f349da8

View File

@ -522,10 +522,10 @@ class SocketFdImpl {
case EISDIR: case EISDIR:
case EBADF: case EBADF:
case ENXIO: case ENXIO:
case EFAULT:
case EINVAL: case EINVAL:
LOG(FATAL) << error; LOG(FATAL) << error;
UNREACHABLE(); UNREACHABLE();
case EFAULT: // happens on various Android 13 phones manufactured by BBK Electronics
default: default:
LOG(WARNING) << error; LOG(WARNING) << error;
// fallthrough // fallthrough