usb: host: xhci: fix ep context print mismatch in debugfs
authorLi Jun <jun.li@nxp.com>
Fri, 21 Aug 2020 09:15:47 +0000 (12:15 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Sep 2020 09:29:43 +0000 (11:29 +0200)
commit50a7c735bc0ab7f604fcb68b8c50955788315175
tree1b2caaad7557a8055b6a9e8b88a83da871528e1c
parent55c0eeabceb7720a5438b501e2c85c05ca684bc9
usb: host: xhci: fix ep context print mismatch in debugfs

commit 0077b1b2c8d9ad5f7a08b62fb8524cdb9938388f upstream.

dci is 0 based and xhci_get_ep_ctx() will do ep index increment to get
the ep context.

[rename dci to ep_index -Mathias]
Cc: stable <stable@vger.kernel.org> # v4.15+
Fixes: 02b6fdc2a153 ("usb: xhci: Add debugfs interface for xHCI driver")
Signed-off-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20200821091549.20556-2-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-debugfs.c