HomeFreeBSD

cxgbe/netmap: Fix cxgbe netmap when interface is DOWN

Description

cxgbe/netmap: Fix cxgbe netmap when interface is DOWN

A kernel panic can occur if the cxgbe interface is DOWN
when activating netmap. This patch prevents the driver
from freeing up cxgbe netmap resources when they have not
been allocated.

Submitted by: Nicolas Witkowski <nwitkowski@verisign.com>
Reviewed by: np
MFC after: 1 week
Sponsored by: Verisign, Inc.
Differential Revision: https://reviews.freebsd.org/D17802

Details

Provenance
jchAuthored on
Reviewer
np
Differential Revision
D17802: Fix cxgbe netmap when interface is DOWN
Parents
rS340374: wc: sandbox wc using capsicum
Branches
Unknown
Tags
Unknown