From 527291f890af91e0b99e9706c0da061d865242da Mon Sep 17 00:00:00 2001 From: jsg Date: Fri, 7 Apr 2023 09:31:59 +0000 Subject: [PATCH] avoid use of uninitialised memory ok miod@ kettenis@ --- sys/arch/arm64/dev/rtkit.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/arch/arm64/dev/rtkit.c b/sys/arch/arm64/dev/rtkit.c index 682dfa15a6f..c38de7e59a9 100644 --- a/sys/arch/arm64/dev/rtkit.c +++ b/sys/arch/arm64/dev/rtkit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtkit.c,v 1.11 2022/12/06 23:18:54 kettenis Exp $ */ +/* $OpenBSD: rtkit.c,v 1.12 2023/04/07 09:31:59 jsg Exp $ */ /* * Copyright (c) 2021 Mark Kettenis * @@ -478,7 +478,9 @@ rtkit_init(int node, const char *name, int flags, struct rtkit *rk) client.mc_rx_callback = rtkit_rx_callback; client.mc_rx_arg = state; if (flags & RK_WAKEUP) - client.mc_flags |= MC_WAKEUP; + client.mc_flags = MC_WAKEUP; + else + client.mc_flags = 0; state->mc = mbox_channel(node, name, &client); if (state->mc == NULL) { -- 2.20.1