USB: janitor storage initializers
authorPete Zaitcev <zaitcev@redhat.com>
Wed, 29 Apr 2009 22:02:18 +0000 (16:02 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Jun 2009 04:44:44 +0000 (21:44 -0700)
commite05b8e6e1066e7583dbb6b00407508797b737995
tree7e0a3445a7f7f3035202dfa666d30f759e28a932
parentbf92c1906e4f294a48fafc15755c65af636195e0
USB: janitor storage initializers

We all know that pointless janitoring is bad, but this code is just
offensive. So:

- The error code goes directly to probe return, so don't return -1.
- Don't return return internal usb-storage codes either.
- usb_stor_control_msg takes timeout in milliseconds.
- Sanitize messages.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/storage/initializers.c