Bug 212993
Summary: | A possible divide by zero in mwifiex_set_ibss_params | ||
---|---|---|---|
Product: | Networking | Reporter: | YiyuanGUO (yguoaz) |
Component: | Wireless | Assignee: | networking_wireless (networking_wireless) |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | akarwar, briannorris, ganapathi.bhat, huxinming820 |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 5.12.2 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
YiyuanGUO
2021-05-08 11:01:34 UTC
> If the variable index is never altered inside the for loop (i.e., no bitrare
> equals to 60)
Well, there's your kicker -- this loop uses a constant array (mwifiex_rates[]) which *does* have an entry with a bitrate of 60. So this divide by zero won't happen.
This isn't exactly the most beautiful code, but bugzilla probably isn't the place for code review.
Closing this as INVALID.
|