USB: wdm: add annotation
commit 73e9cc1ffd3650b12c4eb059dfdafd56e725ceda upstream.
This is not understandable without a comment on endianness
Fixes: afba937e54
("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4b0369c530
commit
9c97886f80
@@ -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->bRequestType = (USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_INTERFACE);
|
||||||
req->bRequest = USB_CDC_SEND_ENCAPSULATED_COMMAND;
|
req->bRequest = USB_CDC_SEND_ENCAPSULATED_COMMAND;
|
||||||
req->wValue = 0;
|
req->wValue = 0;
|
||||||
req->wIndex = desc->inum;
|
req->wIndex = desc->inum; /* already converted */
|
||||||
req->wLength = cpu_to_le16(skb->len);
|
req->wLength = cpu_to_le16(skb->len);
|
||||||
|
|
||||||
skb_shinfo(skb)->destructor_arg = desc;
|
skb_shinfo(skb)->destructor_arg = desc;
|
||||||
|
Reference in New Issue
Block a user