diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2007-07-16 15:28:19 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-19 17:46:04 -0700 |
commit | 195af2cce5ff81c4609c7ba585b6698a7771cbfc (patch) | |
tree | d5367fb5a16f6b0403e91d75aa3cc4c4ba05adfd /lib/ts_bm.c | |
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 <stern@rowland.harvard.edu>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/ts_bm.c')
0 files changed, 0 insertions, 0 deletions