summaryrefslogtreecommitdiff
path: root/scripts/bpf_helpers_doc.py
diff options
context:
space:
mode:
authorXu Yang <xu.yang_2@nxp.com>2024-01-29 17:37:39 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-03-01 13:16:49 +0100
commiteb3693454baab7d784d3b56c96a99c106e49ce14 (patch)
tree52c687daebb6cc2a79c4c79f5daa3f3f4e064385 /scripts/bpf_helpers_doc.py
parente279bf8e51893e1fe160b3d8126ef2dd00f661e1 (diff)
usb: roles: don't get/set_role() when usb_role_switch is unregistered
commit b787a3e781759026a6212736ef8e52cf83d1821a upstream. There is a possibility that usb_role_switch device is unregistered before the user put usb_role_switch. In this case, the user may still want to get/set_role() since the user can't sense the changes of usb_role_switch. This will add a flag to show if usb_role_switch is already registered and avoid unwanted behaviors. Fixes: fde0aa6c175a ("usb: common: Small class for USB role switches") cc: stable@vger.kernel.org Signed-off-by: Xu Yang <xu.yang_2@nxp.com> Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Link: https://lore.kernel.org/r/20240129093739.2371530-2-xu.yang_2@nxp.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions