Loading drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_fw_update.c +7 −0 Original line number Diff line number Diff line Loading @@ -1606,6 +1606,13 @@ static ssize_t fwu_sysfs_store_image(struct file *data_file, struct kobject *kobj, struct bin_attribute *attributes, char *buf, loff_t pos, size_t count) { if (count > (fwu->image_size - fwu->data_pos)) { dev_err(fwu->rmi4_data->pdev->dev.parent, "%s: Not enough space in buffer\n", __func__); return -EINVAL; } memcpy((void *)(&fwu->ext_data_source[fwu->data_pos]), (const void *)buf, count); Loading Loading
drivers/input/touchscreen/synaptics_dsx/synaptics_dsx_fw_update.c +7 −0 Original line number Diff line number Diff line Loading @@ -1606,6 +1606,13 @@ static ssize_t fwu_sysfs_store_image(struct file *data_file, struct kobject *kobj, struct bin_attribute *attributes, char *buf, loff_t pos, size_t count) { if (count > (fwu->image_size - fwu->data_pos)) { dev_err(fwu->rmi4_data->pdev->dev.parent, "%s: Not enough space in buffer\n", __func__); return -EINVAL; } memcpy((void *)(&fwu->ext_data_source[fwu->data_pos]), (const void *)buf, count); Loading