HomeFreeBSD

Fix NULL pointer dereference in ena_up()

Description

Fix NULL pointer dereference in ena_up()

If the call to ena_up() in ena_restore_device() fails, next usage of
ifconfig up will cause NULL pointer dereference.

This patch adds additional checks to prevent that.

Submitted by: Rafal Kozik <rk@semihalf.com>
Obtained from: Semihalf
Sponsored by: Amazon, Inc.

Details

Provenance
mwAuthored on
Parents
rS348411: Unify new line characters in the ENA driver
Branches
Unknown
Tags
Unknown