xhci: Allocate correct amount of scratchpad buffers
commit 6596a926b0b6c80b730a1dd2fa91908e0a539c37 upstream.
Include the high order bit fields for Max scratchpad buffers when
calculating how many scratchpad buffers are needed.
I'm suprised this hasn't caused more issues, we never allocated more than
32 buffers even if xhci needed more. Either we got lucky and xhci never
really used past that area, or then we got enough zeroed dma memory anyway.
Should be backported as far back as possible
Reported-by: Tim Chen <firstname.lastname@example.org>
Tested-by: Tim Chen <email@example.com>
Signed-off-by: Mathias Nyman <firstname.lastname@example.org>
Signed-off-by: Greg Kroah-Hartman <email@example.com>
Signed-off-by: Ben Hutchings <firstname.lastname@example.org>
1 file changed