HomeFreeBSD

ip_mroute: handle V_mfchashtbl allocation failure

Description

ip_mroute: handle V_mfchashtbl allocation failure

We allocate V_mfchashtbl with HASH_NOWAIT (which maps to M_NOWAIT), so
this allocation may fail. As we didn't handle that failure we could end
up dereferencing a NULL pointer later (e.g. during X_ip_mrouter_done()).

Do the obvious thing and fail out if we cannot allocate the table.

See also: https://redmine.pfsense.org/issues/14917
Sponsored by: Rubicon Communications, LLC ("Netgate")

Details

Provenance
kpAuthored on Nov 22 2023, 1:44 PM
Parents
rG8ec79e8ae07d: loader.efi.8: Fix a typo
Branches
Unknown
Tags
Unknown