aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-05-23 22:15:05 +0000
committerGravatar Craig Tiller <ctiller@google.com>2017-05-23 22:15:05 +0000
commit091190ae243a8e0a09f4940fb12186e45f7740bb (patch)
tree37234e4a00339ee86ae6a206e6456f9b4097db68 /src/core/lib/iomgr
parent32726128e96a116d3b2a7fbf5a2f212d0e406f52 (diff)
UBSAN fix
Diffstat (limited to 'src/core/lib/iomgr')
-rw-r--r--src/core/lib/iomgr/ev_epollex_linux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/ev_epollex_linux.c b/src/core/lib/iomgr/ev_epollex_linux.c
index 2d731574d2..11f0135bfd 100644
--- a/src/core/lib/iomgr/ev_epollex_linux.c
+++ b/src/core/lib/iomgr/ev_epollex_linux.c
@@ -529,6 +529,7 @@ static void fd_invoke_workqueue(grpc_exec_ctx *exec_ctx, grpc_fd *fd) {
}
static grpc_closure_scheduler *workqueue_scheduler(grpc_workqueue *workqueue) {
+ if (workqueue == NULL) return NULL;
return &((grpc_fd *)workqueue)->workqueue_scheduler;
}