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 May 30 2019, 1:42 PM
Parents
rG30425f933372: Unify new line characters in the ENA driver
Branches
Unknown
Tags
Unknown

Event Timeline