diff options
| author | Thomas Pugliese <[email protected]> | 2013-08-08 12:11:45 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2013-08-12 13:13:32 -0700 |
| commit | 467d296f47731bcba578cfdea8416b4c152c4f1b (patch) | |
| tree | 9f1e649793a2699b002e7dac26739432d9ab62d1 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | 9841f37a1cca5357c1fd198b1068c12955aa632f (diff) | |
wusbcore: fix root hub hub_status_data to only return > 0 if status has actually changed
The hub_status_data function on the wireless USB root hub controller
(wusbhc_rh_status_data) always returns a positive value even if no ports
have changed. This patch updates wusbhc_rh_status_data to only return a
positive value if the root hub status needs to be queried. The current
implementation can also leave the upper bits of the port bitmap
uninitialized if wusbhc->ports_max is not one less than an even multiple
of 8. This patch fixes that as well by initializing the buffer to 0.
Signed-off-by: Thomas Pugliese <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions