Instead of vfs_read with kernel_read

TP:
Instead of vfs_read with kernel_read
8350 rebase Lahaina.LA.1.0.r1-00375-STD.PROD-1
kernel msm5.14 remove vfs_write EXPORT.

Change-Id: I93141a140c7c17eb68dc817f2fcf0f34e53fdf7b
Reviewed-on: https://gerrit.mot.com/1732677
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Jichao Zou <zoujc@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
litong 2020-08-25 17:55:57 +08:00 • committed by litong20
commit 241924cf77

View file

@ -894,7 +894,7 @@ static int sec_ts_load_fw_from_ums(struct sec_ts_data *ts)
filp_close(fp, NULL);
goto open_err;
}
nread = vfs_read(fp, (char __user *)fw_data,
nread = kernel_read(fp, (char __user *)fw_data,
fw_size, &fp->f_pos);
input_info(true, ts->dev,