Files
linux/drivers/usb/host
Mathias Nyman 701c56f568 xhci: don't create endpoint debugfs entry before ring buffer is set.
[ Upstream commit 167657a1bb ]

Make sure xHC completes the configure endpoint command and xhci driver
sets the ring pointers correctly before we create the user readable
debugfs file.

In theory there was a small gap where a user could have read the
debugfs file and cause a NULL pointer dereference error as ring
pointer was not yet set, in practise we want this change to simplify
the upcoming streams debugfs support.

Fixes: 02b6fdc2a1 ("usb: xhci: Add debugfs interface for xHCI driver")
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20200918131752.16488-10-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-29 10:07:40 +01:00
..
2019-09-02 19:31:18 +02:00
2019-06-03 16:00:08 +02:00
2017-12-12 13:16:07 +01:00
2020-05-19 14:11:55 +02:00
2020-06-24 16:03:41 +02:00