summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ohci-s3c2410.c
diff options
context:
space:
mode:
authorXenia Ragiadakou <burzalodowa@gmail.com>2013-09-09 21:03:07 +0300
committerSarah Sharp <sarah.a.sharp@linux.intel.com>2013-12-02 12:59:47 -0800
commit78d1ff025698e1a70e3fef38342648d4dc826cf6 (patch)
treeb0d07f187fdbfe4476e14baf0d0a716cb8ed025a /drivers/usb/host/ohci-s3c2410.c
parentef73400ca5d1ad695374988510b9977c41b81f3e (diff)
downloadblackbird-op-linux-78d1ff025698e1a70e3fef38342648d4dc826cf6.tar.gz
blackbird-op-linux-78d1ff025698e1a70e3fef38342648d4dc826cf6.zip
xhci: fix incorrect type in assignment in xhci_count_num_dropped_endpoints()
The fields 'add_flags' and 'drop_flags' in struct xhci_input_control_ctx have type __le32 and need to be converted to CPU byteorder before being used to derive the number of dropped endpoints. This bug was found using sparse. This patch is not suitable for stable, since the bug would only be triggered on big endian systems, and the code only runs for Intel xHCI host controllers, which are always integrated into little endian systems. Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'drivers/usb/host/ohci-s3c2410.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud