]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
usb: chipdea: core: fix return -EINVAL if request role is the same with current role
authorXu Yang <xu.yang_2@nxp.com>
Fri, 17 Mar 2023 06:15:15 +0000 (14:15 +0800)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Wed, 17 May 2023 11:33:38 +0000 (13:33 +0200)
commit9bd4e40fa3b35ea3736a6a1a8fc86a84a68dbf61
tree9389fb02168635e4b29a80d1a0ac293a13c39b42
parent0b637fd8163b498ece71fdc013e89f81e67cd560
usb: chipdea: core: fix return -EINVAL if request role is the same with current role

BugLink: https://bugs.launchpad.net/bugs/2016877
commit 3670de80678961eda7fa2220883fc77c16868951 upstream.

It should not return -EINVAL if the request role is the same with current
role, return non-error and without do anything instead.

Fixes: a932a8041ff9 ("usb: chipidea: core: add sysfs group")
cc: <stable@vger.kernel.org>
Acked-by: Peter Chen <peter.chen@kernel.org>
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Link: https://lore.kernel.org/r/20230317061516.2451728-1-xu.yang_2@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/usb/chipidea/core.c