diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-04-07 09:32:00 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2023-04-07 09:32:00 +0000 |
commit | 7bf8717acecee93118eadbe6cd63c4ae3715a8fe (patch) | |
tree | 1e1d18dc1950de3caa6c3914102cc179cb201fcf /sys | |
parent | bafaebc509894c84502c014673e75f452f6bdc19 (diff) |
avoid use of uninitialised memory
ok miod@ kettenis@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/arm64/dev/rtkit.c | 6 |
1 files 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 <kettenis@openbsd.org> * @@ -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) { |