Page MenuHomeFreeBSD

[iwm] Fix iwm_poll_bit() error value check in iwm_attach().
ClosedPublic

Authored by ivadasz on Sep 18 2016, 9:29 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 2, 8:23 PM
Unknown Object (File)
Tue, Sep 30, 12:53 AM
Unknown Object (File)
Sun, Sep 28, 2:16 PM
Unknown Object (File)
Fri, Sep 26, 9:44 AM
Unknown Object (File)
Fri, Sep 26, 2:00 AM
Unknown Object (File)
Thu, Sep 25, 3:57 AM
Unknown Object (File)
Sat, Sep 20, 6:53 AM
Unknown Object (File)
Wed, Sep 17, 1:57 AM
Subscribers

Details

Summary

The iwm(4) iwm_poll_bit() function returns 1 on success, and 0 on failure,
whereas the iwl_poll_bit() in Linux iwlwifi returns < 0 on failure.

So the (ret < 0) check ended up ignoring any error returned by
iwm_poll_bit().

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 5196
Build 5329: arc lint + arc unit

Event Timeline

ivadasz retitled this revision from to [iwm] Fix iwm_poll_bit() error value check in iwm_attach()..
ivadasz updated this object.
ivadasz added reviewers: adrian, cognet.
adrian edited edge metadata.
This revision is now accepted and ready to land.Sep 19 2016, 9:36 PM
This revision was automatically updated to reflect the committed changes.