Loading drivers/usb/gadget/storage_common.c +3 −0 Original line number Diff line number Diff line Loading @@ -632,6 +632,9 @@ static ssize_t fsg_show_file(struct device *dev, struct device_attribute *attr, rc = PTR_ERR(p); else { rc = strlen(p); if (rc > PAGE_SIZE - 2) rc = PAGE_SIZE - 2; memmove(buf, p, rc); buf[rc] = '\n'; /* Add a newline */ buf[++rc] = 0; Loading Loading
drivers/usb/gadget/storage_common.c +3 −0 Original line number Diff line number Diff line Loading @@ -632,6 +632,9 @@ static ssize_t fsg_show_file(struct device *dev, struct device_attribute *attr, rc = PTR_ERR(p); else { rc = strlen(p); if (rc > PAGE_SIZE - 2) rc = PAGE_SIZE - 2; memmove(buf, p, rc); buf[rc] = '\n'; /* Add a newline */ buf[++rc] = 0; Loading