xhci: convert TRB_CYCLE to le32 before using it to set Link TRB's cycle bit
authorXenia Ragiadakou <burzalodowa@gmail.com>
Mon, 9 Sep 2013 18:03:09 +0000 (21:03 +0300)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Mon, 2 Dec 2013 20:59:44 +0000 (12:59 -0800)
commit587194873820a4a1b2eda260ac851394095afd77
tree7edbeab125f70ad6893f915bf4aa2dbf779908e0
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae
xhci: convert TRB_CYCLE to le32 before using it to set Link TRB's cycle bit

This patch converts TRB_CYCLE to le32 to update correctly the Cycle Bit in
'control' field of the link TRB.
This bug was found using sparse.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/host/xhci-mem.c