]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] USB hub: don't return status > 0 from resume
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 19 Jun 2006 19:12:38 +0000 (15:12 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 12 Jul 2006 23:03:22 +0000 (16:03 -0700)
commit68422ef2531f9164fe2f2fe43fab32a6640cf005
tree90a903dd48e9b9e3908f0a506704d039011bb204
parent71dfdb38c813b7b0c86822ab8668a4a0a282cb21
[PATCH] USB hub: don't return status > 0 from resume

finish_device_resume() in the hub driver isn't careful always to return
a negative code in all the error pathways.  It also doesn't return 0 in
all the success pathways.  This patch (as724) fixes the behavior.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/hub.c