]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
USB: wdm: add annotation
authorOliver Neukum <oneukum@suse.com>
Tue, 1 Apr 2025 08:45:41 +0000 (10:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Apr 2025 14:27:34 +0000 (16:27 +0200)
This is not understandable without a comment on endianness

Fixes: afba937e540c9 ("USB: CDC WDM driver")
Cc: stable <stable@kernel.org>
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Link: https://lore.kernel.org/r/20250401084749.175246-5-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-wdm.c

index fc34a54126904dc2b1668e17e380724c62f34922..16e7fa4d488d37ecdb288318bcc3f6ebea3016f1 100644 (file)
@@ -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;