aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/class
diff options
context:
space:
mode:
authorOliver Neukum <[email protected]>2025-04-01 08:45:41 +0000
committerGreg Kroah-Hartman <[email protected]>2025-04-11 14:27:34 +0000
commit73e9cc1ffd3650b12c4eb059dfdafd56e725ceda (patch)
tree29977e95139af84309433fb53523c5dfe6e3ad47 /drivers/usb/class
parentUSB: wdm: wdm_wwan_port_tx_complete mutex in atomic context (diff)
downloadkernel-73e9cc1ffd3650b12c4eb059dfdafd56e725ceda.tar.gz
kernel-73e9cc1ffd3650b12c4eb059dfdafd56e725ceda.zip
USB: wdm: add annotation
This is not understandable without a comment on endianness Fixes: afba937e540c9 ("USB: CDC WDM driver") Cc: stable <[email protected]> Signed-off-by: Oliver Neukum <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/class')
-rw-r--r--drivers/usb/class/cdc-wdm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c
index fc34a5412690..16e7fa4d488d 100644
--- a/drivers/usb/class/cdc-wdm.c
+++ b/drivers/usb/class/cdc-wdm.c
@@ -909,7 +909,7 @@ static int wdm_wwan_port_tx(struct wwan_port *port, struct sk_buff *skb)
req->bRequestType = (USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_INTERFACE);
req->bRequest = USB_CDC_SEND_ENCAPSULATED_COMMAND;
req->wValue = 0;
- req->wIndex = desc->inum;
+ req->wIndex = desc->inum; /* already converted */
req->wLength = cpu_to_le16(skb->len);
skb_shinfo(skb)->destructor_arg = desc;