Page MenuHomeFreeBSD

Fix error-path resource leaks in iflib registration routines
ClosedPublic

Authored by pkelsey on Sun, Jan 6, 5:02 AM.

Details

Summary

This patch fixes various resource leaks that can occur in the error paths of iflib_device_register() and iflib_pseudo_register().

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

pkelsey created this revision.Sun, Jan 6, 5:02 AM
shurd accepted this revision.Mon, Jan 7, 9:03 PM

Looks good, only a tiny nitpick on the fail label.

This revision is now accepted and ready to land.Mon, Jan 7, 9:03 PM

Looks good, only a tiny nitpick on the fail label.

Will make them consistent prior to commit.

This revision was automatically updated to reflect the committed changes.