Loading drivers/usb/host/ehci-msm2.c +2 −2 Original line number Diff line number Diff line Loading @@ -1059,7 +1059,7 @@ static ssize_t debug_write_phy_data(struct file *file, const char __user *buf, memset(kbuf, 0, 10); if (copy_from_user(kbuf, buf, count > 10 ? 10 : count)) if (copy_from_user(kbuf, buf, min_t(size_t, sizeof(kbuf) - 1, count))) return -EFAULT; if (sscanf(kbuf, "%x", &data) != 1) Loading @@ -1084,7 +1084,7 @@ static ssize_t debug_phy_write_addr(struct file *file, const char __user *buf, memset(kbuf, 0, 10); if (copy_from_user(kbuf, buf, count > 10 ? 10 : count)) if (copy_from_user(kbuf, buf, min_t(size_t, sizeof(kbuf) - 1, count))) return -EFAULT; if (sscanf(kbuf, "%x", &temp) != 1) Loading Loading
drivers/usb/host/ehci-msm2.c +2 −2 Original line number Diff line number Diff line Loading @@ -1059,7 +1059,7 @@ static ssize_t debug_write_phy_data(struct file *file, const char __user *buf, memset(kbuf, 0, 10); if (copy_from_user(kbuf, buf, count > 10 ? 10 : count)) if (copy_from_user(kbuf, buf, min_t(size_t, sizeof(kbuf) - 1, count))) return -EFAULT; if (sscanf(kbuf, "%x", &data) != 1) Loading @@ -1084,7 +1084,7 @@ static ssize_t debug_phy_write_addr(struct file *file, const char __user *buf, memset(kbuf, 0, 10); if (copy_from_user(kbuf, buf, count > 10 ? 10 : count)) if (copy_from_user(kbuf, buf, min_t(size_t, sizeof(kbuf) - 1, count))) return -EFAULT; if (sscanf(kbuf, "%x", &temp) != 1) Loading