Page MenuHomeFreeBSD

Fix broken malloc in e6000sw
ClosedPublic

Authored by mw_semihalf.com on May 14 2017, 12:40 AM.
Tags
Referenced Files
Unknown Object (File)
Sun, Mar 30, 10:57 PM
Unknown Object (File)
Wed, Mar 12, 9:31 AM
Unknown Object (File)
Mon, Mar 10, 11:42 PM
Unknown Object (File)
Feb 24 2025, 8:11 PM
Unknown Object (File)
Feb 7 2025, 1:28 PM
Unknown Object (File)
Feb 7 2025, 7:14 AM
Unknown Object (File)
Feb 4 2025, 2:17 AM
Unknown Object (File)
Jan 29 2025, 8:29 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable