diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2007-07-16 19:28:19 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-20 00:46:04 (GMT) |
commit | 195af2cce5ff81c4609c7ba585b6698a7771cbfc (patch) | |
tree | d5367fb5a16f6b0403e91d75aa3cc4c4ba05adfd /include/asm-um/auxvec.h | |
parent | 69d42a78f935d19384d1f6e4f94b65bb162b36df (diff) | |
download | linux-195af2cce5ff81c4609c7ba585b6698a7771cbfc.tar.xz |
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 'include/asm-um/auxvec.h')
0 files changed, 0 insertions, 0 deletions