Loading drivers/usb/pd/policy_engine.c +1 −1 Original line number Diff line number Diff line Loading @@ -942,7 +942,7 @@ static struct rx_msg *pd_ext_msg_received(struct usbpd *pd, u16 header, u8 *buf, /* check against received length to avoid overrun */ if (bytes_to_copy > len - sizeof(ext_hdr)) { usbpd_warn(&pd->dev, "not enough bytes in chunk, expected:%u received:%lu\n", usbpd_warn(&pd->dev, "not enough bytes in chunk, expected:%u received:%zu\n", bytes_to_copy, len - sizeof(ext_hdr)); bytes_to_copy = len - sizeof(ext_hdr); } Loading Loading
drivers/usb/pd/policy_engine.c +1 −1 Original line number Diff line number Diff line Loading @@ -942,7 +942,7 @@ static struct rx_msg *pd_ext_msg_received(struct usbpd *pd, u16 header, u8 *buf, /* check against received length to avoid overrun */ if (bytes_to_copy > len - sizeof(ext_hdr)) { usbpd_warn(&pd->dev, "not enough bytes in chunk, expected:%u received:%lu\n", usbpd_warn(&pd->dev, "not enough bytes in chunk, expected:%u received:%zu\n", bytes_to_copy, len - sizeof(ext_hdr)); bytes_to_copy = len - sizeof(ext_hdr); } Loading