summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci-mem.c
diff options
context:
space:
mode:
authorSergey Shtylyov <s.shtylyov@omp.ru>2022-02-17 18:30:13 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-02-24 11:19:18 +0100
commitc6c986b657e55910746ea0f41e1aee0696833c7a (patch)
tree85393a3de8d96224cb0ec0fbf2c9e972858c2aea /drivers/usb/host/xhci-mem.c
parentusb: dwc3: pci: Also apply Bay Trail GPIO mappings to ulpi-device (diff)
downloadlinux-c6c986b657e55910746ea0f41e1aee0696833c7a.tar.xz
linux-c6c986b657e55910746ea0f41e1aee0696833c7a.zip
usb: host: ehci-q: make qtd_fill() return *unsigned int*
At the end of qtd_fill(), we assign the 'int count' variable to the 'size_t length' field of 'struct ehci_qtd' -- which implies a problematic type cast. Let's make that variable and the function's result *unsigned int* instead... Found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool. Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru> Link: https://lore.kernel.org/r/8c64fdeb-5857-8cb3-cfd8-0c248a14b909@omp.ru Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/xhci-mem.c')
0 files changed, 0 insertions, 0 deletions