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)
Mon, Apr 6, 12:13 PM
Unknown Object (File)
Mon, Apr 6, 6:52 AM
Unknown Object (File)
Fri, Apr 3, 1:52 AM
Unknown Object (File)
Fri, Apr 3, 1:48 AM
Unknown Object (File)
Thu, Apr 2, 3:23 PM
Unknown Object (File)
Thu, Apr 2, 6:11 AM
Unknown Object (File)
Thu, Apr 2, 6:11 AM
Unknown Object (File)
Wed, Apr 1, 5:04 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 Skipped
Unit
Tests Skipped