mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 15:04:27 +08:00
usb: mtu3: avoid TX data length truncated in SS/SSP mode
The variable of 'count' is declared as u8, this will cause an issue due to value truncated when works in SS or SSP mode and data length is greater than 255, so change it as u32. Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
64f5b56c91
commit
288ee3c362
@ -546,7 +546,7 @@ static void ep0_tx_state(struct mtu3 *mtu)
|
||||
struct usb_request *req;
|
||||
u32 csr;
|
||||
u8 *src;
|
||||
u8 count;
|
||||
u32 count;
|
||||
u32 maxp;
|
||||
|
||||
dev_dbg(mtu->dev, "%s\n", __func__);
|
||||
|
Loading…
Reference in New Issue
Block a user