[Bug 203887] Integer divide panic

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Oct 20 18:24:45 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203887

Adrian Chadd <adrian at freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|New                         |In Progress
                 CC|                            |adrian at freebsd.org

--- Comment #1 from Adrian Chadd <adrian at freebsd.org> ---
I'm guessing its:

    /* XXX beware of overflow? */
    ani_state->listen_time += listen_time;

in that function.

Just add this underneath:

if (ani_state->listen_time == 0) {
        /* restart ANI period if listen_time is invalid */
        HALDEBUG(ah, HAL_DEBUG_ANI,
            "%s: listen_time=%d - calling ar9300_ani_restart\n",
            __func__, listen_time);
        ar9300_ani_restart(ah);
        return;
}

i bet that fixes it!

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-wireless mailing list