HomeFreeBSD

Fix broken malloc in e6000sw

Description

Fix broken malloc in e6000sw

Malloc should always return something when M_WAITOK flag is used,
but keep this code and change flag to M_NOWAIT as it is under a lock
(allows for possible future change). Free ifnet structure to avoid
memory leak on failure.

Submitted by: Zbigniew Bodek <zbb@semihalf.com>
Obtained from: Semihalf
Sponsored by: Stormshield
Reviewed by: loos
Differential revision: https://reviews.freebsd.org/D10711

Details

Committed
zbbMay 17 2017, 3:58 PM
Reviewer
loos
Differential Revision
D10711: Fix broken malloc in e6000sw
Parents
rS318409: Fix registration of MPIC driver
Branches
Unknown
Tags
Unknown