diff options
| author | Alan Stern <[email protected]> | 2007-07-16 15:28:19 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2007-07-19 17:46:04 -0700 |
| commit | 195af2cce5ff81c4609c7ba585b6698a7771cbfc (patch) | |
| tree | d5367fb5a16f6b0403e91d75aa3cc4c4ba05adfd /tools/perf/scripts/python | |
| parent | 69d42a78f935d19384d1f6e4f94b65bb162b36df (diff) | |
USB: fix warning caused by autosuspend counter going negative
This patch (as937) fixes a minor bug in the autosuspend usage-counting
code. Each hub's usage counter keeps track of the number of
unsuspended children. However the current driver increments the
counter after registering a new child, by which time the child may
already have been suspended and caused the counter to go negative.
The obvious solution is to increment the counter before registering
the child.
Signed-off-by: Alan Stern <[email protected]>
Cc: stable <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions