From 78dc3f1bd0cf4ff478e1c71970248d24e155ed13 Mon Sep 17 00:00:00 2001 From: Matt Dunwoodie Date: Fri, 23 Apr 2021 14:23:08 +1000 Subject: if_wg: remove M_WAITOK, check return codes on init Here we remove all M_WAITOK checks, because we don't want to hang while trying to allocate memory. It is better to return an error so the user can try again later. We also make sure to check all the return codes in peer and interface allocation. The structure of those functions is: 1) Allocate all memory 2) Initialise fields in order of the struct 3) Cleanup gotos Signed-off-by: Matt Dunwoodie --- TODO.md | 1 - 1 file changed, 1 deletion(-) (limited to 'TODO.md') diff --git a/TODO.md b/TODO.md index 1f89520..ad85d72 100644 --- a/TODO.md +++ b/TODO.md @@ -11,7 +11,6 @@ - Make sure noise state machine is correct. - Investigate whether the allowed ips lookup structure needs reference counting. -- Stop using `M_WAITOK` and use `M_NOWAIT` instead. ### Crypto TODO -- cgit v1.2.3-59-g8ed1b