HomeFreeBSD

[etherswitch] check if_alloc returns NULL

Description

[etherswitch] check if_alloc returns NULL

This patch is cosmetic. It checks if allocation of ifnet structure failed.
It's better to have this check rather than assume positive scenario.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
Reported by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>

Details

Provenance
mizhkaAuthored on
Parents
rS328376: uefi.8: add .Xr cross references to new efi tools
Branches
Unknown
Tags
Unknown