Page MenuHomeFreeBSD

rum: simplify error handling in rum_newstate()
ClosedPublic

Authored by avos on Mar 4 2016, 12:04 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 28 2024, 12:44 AM
Unknown Object (File)
Sep 19 2024, 10:36 AM
Unknown Object (File)
Sep 19 2024, 5:18 AM
Unknown Object (File)
Sep 11 2024, 12:37 AM
Unknown Object (File)
Sep 8 2024, 6:40 AM
Unknown Object (File)
Sep 7 2024, 9:58 PM
Unknown Object (File)
Sep 7 2024, 9:07 PM
Unknown Object (File)
Aug 31 2024, 11:43 PM
Subscribers

Details

Test Plan

Tested with WUSB54GC, STA mode.

Diff Detail

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

Event Timeline

avos retitled this revision from to rum: simplify error handling in rum_newstate().
avos updated this object.
avos edited the test plan for this revision. (Show Details)
avos added a reviewer: adrian.
avos set the repository for this revision to rS FreeBSD src repository - subversion.
adrian edited edge metadata.

i'm okay with this here, but the error handling in kernel code does a lot of this kind of thing. That way the unwinding is very clear. If someone edits the code under rum_fail then it has to work correctly in both code paths (success and failure.)

So just be cautious if you decide to do big sweeping changes like this!

This revision is now accepted and ready to land.Mar 10 2016, 5:03 PM
This revision was automatically updated to reflect the committed changes.