diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2013-01-24 15:04:13 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-24 14:03:56 -0800 |
commit | bdb6bc06f7d694652c12fb8779bb031c2f220823 (patch) | |
tree | 26e79c17b43906807b735dd41b8f5edf3a78ff75 /mm | |
parent | 3171fcabb16993d6501fab7723371f0f3d0c6840 (diff) | |
download | blackbird-op-linux-bdb6bc06f7d694652c12fb8779bb031c2f220823.tar.gz blackbird-op-linux-bdb6bc06f7d694652c12fb8779bb031c2f220823.zip |
USB: fix sign-extension bug in the hub driver
This patch (as1646) fixes a long-standing bug in the USB hub driver.
Upon conversion from char to unsigned long, the bytes in the status
buffer are subject to unwanted sign extension. The bytes should be
declared as u8 rather than char, to prevent this.
This effects of this bug are minimal. The hub driver may end up doing
a little unnecessary extra work because it thinks events have occurred
on some ports when they really haven't.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions