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
F103553676: D7932.diff
Tue, Nov 26, 11:12 AM
Unknown Object (File)
Sun, Nov 24, 3:53 PM
Unknown Object (File)
Sun, Nov 24, 3:53 PM
Unknown Object (File)
Sun, Nov 24, 3:53 PM
Unknown Object (File)
Sun, Nov 24, 3:52 PM
Unknown Object (File)
Tue, Nov 19, 11:57 PM
Unknown Object (File)
Tue, Nov 19, 10:53 AM
Unknown Object (File)
Fri, Nov 15, 4:48 PM
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 Not Applicable
Unit
Tests Not Applicable

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.