summaryrefslogtreecommitdiff
path: root/drivers/usb/host/xhci.c
diff options
context:
space:
mode:
authorMathias Nyman <mathias.nyman@linux.intel.com>2015-02-24 18:27:01 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-02-24 08:34:32 -0800
commit6596a926b0b6c80b730a1dd2fa91908e0a539c37 (patch)
treea6560e66d216dd7e579d986e9f139d4d097ad7f8 /drivers/usb/host/xhci.c
parent1e7e4fb66489cc84366656ca5318f1cb61afd4ba (diff)
downloadlinux-6596a926b0b6c80b730a1dd2fa91908e0a539c37.tar.gz
xhci: Allocate correct amount of scratchpad buffers
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 <tim.c.chen@linux.intel.com> Tested-by: Tim Chen <tim.c.chen@linux.intel.com> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Cc: <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/xhci.c')
0 files changed, 0 insertions, 0 deletions