From 7d8fb901b68b6a88be9adc5a458fbba367a371bf Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Tue, 24 Jan 2023 00:10:45 -0500 Subject: Set kr if copy cannot be copied to user space Compiler will complain otherwise that kr is not initialized. Message-Id: --- ipc/ipc_kmsg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ipc') diff --git a/ipc/ipc_kmsg.c b/ipc/ipc_kmsg.c index 2c9d4988..dac4f5dc 100644 --- a/ipc/ipc_kmsg.c +++ b/ipc/ipc_kmsg.c @@ -2466,8 +2466,10 @@ ipc_kmsg_copyout_body( mach_port_t *src = (mach_port_t*)data; mach_port_name_t *dst = (mach_port_name_t*)addr; for (int i=0; i