USB: handle errors in power/level attribute
commitdd865571d7af06ba1285c2db85083649193cceab
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 22 May 2007 15:38:19 +0000 (22 11:38 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 May 2007 06:45:50 +0000 (22 23:45 -0700)
tree125256fec4cb97995fb200cef37f05d63b490790
parent7ed92f1a149dddc3cb537ccd7441e98adac12c3e
USB: handle errors in power/level attribute

This patch (as906) improves the error handling for the USB power/level
attribute file.  If an error occurs, the original power-level settings
will be restored.

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