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 EBADF:
case ENXIO:
case EFAULT:
case EINVAL:
LOG(FATAL) << error;
UNREACHABLE();
case EFAULT: // happens on various Android 13 phones manufactured by BBK Electronics
default:
LOG(WARNING) << error;
// fallthrough