Loading drivers/usb/pd/policy_engine.c +3 −3 Original line number Diff line number Diff line Loading @@ -538,7 +538,7 @@ static void phy_msg_received(struct usbpd *pd, enum pd_msg_type type, } if (len < 2) { usbpd_err(&pd->dev, "invalid message received, len=%ld\n", len); usbpd_err(&pd->dev, "invalid message received, len=%zd\n", len); return; } Loading @@ -547,7 +547,7 @@ static void phy_msg_received(struct usbpd *pd, enum pd_msg_type type, len -= sizeof(u16); if (len % 4 != 0) { usbpd_err(&pd->dev, "len=%ld not multiple of 4\n", len); usbpd_err(&pd->dev, "len=%zd not multiple of 4\n", len); return; } Loading @@ -566,7 +566,7 @@ static void phy_msg_received(struct usbpd *pd, enum pd_msg_type type, /* check header's count field to see if it matches len */ if (PD_MSG_HDR_COUNT(header) != (len / 4)) { usbpd_err(&pd->dev, "header count (%d) mismatch, len=%ld\n", usbpd_err(&pd->dev, "header count (%d) mismatch, len=%zd\n", PD_MSG_HDR_COUNT(header), len); return; } Loading drivers/usb/pd/qpnp-pdphy.c +2 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,8 @@ #include <linux/of_irq.h> #include <linux/debugfs.h> #include <linux/seq_file.h> #include <linux/sched.h> #include <linux/wait.h> #include "usbpd.h" #define USB_PDPHY_MAX_DATA_OBJ_LEN 28 Loading Loading
drivers/usb/pd/policy_engine.c +3 −3 Original line number Diff line number Diff line Loading @@ -538,7 +538,7 @@ static void phy_msg_received(struct usbpd *pd, enum pd_msg_type type, } if (len < 2) { usbpd_err(&pd->dev, "invalid message received, len=%ld\n", len); usbpd_err(&pd->dev, "invalid message received, len=%zd\n", len); return; } Loading @@ -547,7 +547,7 @@ static void phy_msg_received(struct usbpd *pd, enum pd_msg_type type, len -= sizeof(u16); if (len % 4 != 0) { usbpd_err(&pd->dev, "len=%ld not multiple of 4\n", len); usbpd_err(&pd->dev, "len=%zd not multiple of 4\n", len); return; } Loading @@ -566,7 +566,7 @@ static void phy_msg_received(struct usbpd *pd, enum pd_msg_type type, /* check header's count field to see if it matches len */ if (PD_MSG_HDR_COUNT(header) != (len / 4)) { usbpd_err(&pd->dev, "header count (%d) mismatch, len=%ld\n", usbpd_err(&pd->dev, "header count (%d) mismatch, len=%zd\n", PD_MSG_HDR_COUNT(header), len); return; } Loading
drivers/usb/pd/qpnp-pdphy.c +2 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,8 @@ #include <linux/of_irq.h> #include <linux/debugfs.h> #include <linux/seq_file.h> #include <linux/sched.h> #include <linux/wait.h> #include "usbpd.h" #define USB_PDPHY_MAX_DATA_OBJ_LEN 28 Loading