Page MenuHomeFreeBSD

Fix broken malloc in e6000sw
ClosedPublic

Authored by mw_semihalf.com on May 14 2017, 12:40 AM.

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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

loos accepted this revision.May 16 2017, 4:05 AM
This revision is now accepted and ready to land.May 16 2017, 4:05 AM
This revision was automatically updated to reflect the committed changes.