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)
Sat, Apr 6, 5:14 PM
Unknown Object (File)
Sat, Apr 6, 4:29 PM
Unknown Object (File)
Feb 11 2024, 5:36 AM
Unknown Object (File)
Dec 20 2023, 1:52 AM
Unknown Object (File)
Oct 6 2023, 6:06 PM
Unknown Object (File)
Aug 25 2023, 1:13 AM
Unknown Object (File)
Jun 30 2023, 10:30 PM
Unknown Object (File)
Jun 24 2023, 8:00 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.