From: Alan Stern Date: Mon, 16 Jul 2007 19:28:19 +0000 (-0400) Subject: USB: fix warning caused by autosuspend counter going negative X-Git-Tag: v2.6.23-rc1~231^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=195af2cce5ff81c4609c7ba585b6698a7771cbfc;p=pandora-kernel.git 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 Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed