HomeFreeBSD

wg: fix MOD_LOAD to fail properly if cookie_init() fails

Description

wg: fix MOD_LOAD to fail properly if cookie_init() fails

Previously we'd jump to the free_crypto label, but never set ret to
a failure value -- it would retain success from the call just prior.

Set ret up properly.

This is part of D40708, but not the main point of the change.

Details

Provenance
kevansAuthored on Jun 23 2023, 4:41 PM
Parents
rGc3e58ace3145: arm64 iommu: Fix build without INVARIANTS.
Branches
Unknown
Tags
Unknown