Commit 1be5e58a authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman Committed by Zheng Yejian
Browse files

USB: move snd_usb_pipe_sanity_check into the USB core

mainline inclusion
from mainline-v5.10-rc1
commit fcc2cc1f
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IAEPSH

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fcc2cc1f35613c016e1de25bb001bfdd9eaa25f9



--------------------------------

snd_usb_pipe_sanity_check() is a great function, so let's move it into
the USB core so that other parts of the kernel, including the USB core,
can call it.

Name it usb_pipe_type_check() to match the existing
usb_urb_ep_type_check() call, which now uses this function.

Cc: Jaroslav Kysela <perex@perex.cz>
Cc: "Gustavo A. R. Silva" <gustavoars@kernel.org>
Cc: Eli Billauer <eli.billauer@gmail.com>
Cc: Emiliano Ingrassia <ingrassia@epigenesys.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Alexander Tsoy <alexander@tsoy.me>
Cc: "Geoffrey D. Bennett" <g@b4.vu>
Cc: Jussi Laako <jussi@sonarnerd.net>
Cc: Nick Kossifidis <mickflemm@gmail.com>
Cc: Dmitry Panchenko <dmitry@d-systems.ee>
Cc: Chris Wulff <crwulff@gmail.com>
Cc: Jesus Ramos <jesus-ramos@live.com>
Reviewed-by: default avatarTakashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20200914153756.3412156-2-gregkh@linuxfoundation.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Conflicts:
	sound/usb/helper.c
	sound/usb/helper.h
	sound/usb/quirks.c
[Resolve conflicts due to usb-audio sanity check patch
801ebf10 not merged, it
is not relevant to this patch.]
Signed-off-by: default avatarZheng Yejian <zhengyejian1@huawei.com>
parent 8d2f09e2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment