From 3953321129892fb0e9ead32caded4509168c589e Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Fri, 16 Apr 2021 15:14:19 +0100 Subject: [PATCH] ipc: Return error from ipc_call_session_create in create_native_compositor --- src/xrt/ipc/client/ipc_client_compositor.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xrt/ipc/client/ipc_client_compositor.c b/src/xrt/ipc/client/ipc_client_compositor.c index 5a890288d..136b62ae5 100644 --- a/src/xrt/ipc/client/ipc_client_compositor.c +++ b/src/xrt/ipc/client/ipc_client_compositor.c @@ -822,6 +822,10 @@ ipc_syscomp_create_native_compositor(struct xrt_system_compositor *xsc, // Needs to be done before init. IPC_CALL_CHK(ipc_call_session_create(icc->ipc_c, xsi)); + if (res != XRT_SUCCESS) { + return res; + } + // Needs to be done after session create call. ipc_compositor_init(icc, out_xcn);