diff options
author | Mathias Nyman <mathias.nyman@linux.intel.com> | 2021-01-29 15:00:22 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-28 11:13:52 +0200 |
commit | 80050dfea3c757da5dd5f6b23d49f38c6c6ea855 (patch) | |
tree | 6299b623f374fa6dd0815c54690950940e098a9e /kernel/kcmp.c | |
parent | 00450ed03a17143e2433b461a656ef9cd17c2f1d (diff) | |
download | linux-80050dfea3c757da5dd5f6b23d49f38c6c6ea855.tar.gz linux-80050dfea3c757da5dd5f6b23d49f38c6c6ea855.tar.bz2 linux-80050dfea3c757da5dd5f6b23d49f38c6c6ea855.zip |
xhci: add xhci_get_virt_ep() helper
[commit b1adc42d440df3233255e313a45ab7e9b2b74096 upstream]
In several event handlers we need to find the right endpoint
structure from slot_id and ep_index in the event.
Add a helper for this, check that slot_id and ep_index are valid.
Cc: stable@vger.kernel.org
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20210129130044.206855-6-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Carsten Schmid <carsten_schmid@mentor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/kcmp.c')
0 files changed, 0 insertions, 0 deletions