mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 15:12:59 +02:00
USB: gadget: rndis: fix compilation warning
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
This commit is contained in:
parent
1aab3d20ef
commit
433b7b6a39
|
|
@ -1050,7 +1050,7 @@ int rndis_rm_hdr(struct gether *port,
|
|||
}
|
||||
|
||||
if (skb->len < sizeof *hdr) {
|
||||
pr_err("invalid rndis pkt: skblen:%u hdr_len:%u",
|
||||
pr_err("invalid rndis pkt: skblen:%u hdr_len:%zu",
|
||||
skb->len, sizeof *hdr);
|
||||
dev_kfree_skb_any(skb);
|
||||
return -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user