Loading drivers/platform/msm/ipa/ipa_v2/ipa_intf.c +4 −0 Original line number Diff line number Diff line Loading @@ -562,6 +562,8 @@ ssize_t ipa_read(struct file *filp, char __user *buf, size_t count, mutex_unlock(&ipa_ctx->msg_lock); if (copy_to_user(buf, &msg->meta, sizeof(struct ipa_msg_meta))) { kfree(msg); msg = NULL; ret = -EFAULT; break; } Loading @@ -570,6 +572,8 @@ ssize_t ipa_read(struct file *filp, char __user *buf, size_t count, if (msg->buff) { if (copy_to_user(buf, msg->buff, msg->meta.msg_len)) { kfree(msg); msg = NULL; ret = -EFAULT; break; } Loading drivers/platform/msm/ipa/ipa_v3/ipa_intf.c +4 −0 Original line number Diff line number Diff line Loading @@ -570,6 +570,8 @@ ssize_t ipa3_read(struct file *filp, char __user *buf, size_t count, if (copy_to_user(buf, &msg->meta, sizeof(struct ipa_msg_meta))) { ret = -EFAULT; kfree(msg); msg = NULL; break; } buf += sizeof(struct ipa_msg_meta); Loading @@ -578,6 +580,8 @@ ssize_t ipa3_read(struct file *filp, char __user *buf, size_t count, if (copy_to_user(buf, msg->buff, msg->meta.msg_len)) { ret = -EFAULT; kfree(msg); msg = NULL; break; } buf += msg->meta.msg_len; Loading Loading
drivers/platform/msm/ipa/ipa_v2/ipa_intf.c +4 −0 Original line number Diff line number Diff line Loading @@ -562,6 +562,8 @@ ssize_t ipa_read(struct file *filp, char __user *buf, size_t count, mutex_unlock(&ipa_ctx->msg_lock); if (copy_to_user(buf, &msg->meta, sizeof(struct ipa_msg_meta))) { kfree(msg); msg = NULL; ret = -EFAULT; break; } Loading @@ -570,6 +572,8 @@ ssize_t ipa_read(struct file *filp, char __user *buf, size_t count, if (msg->buff) { if (copy_to_user(buf, msg->buff, msg->meta.msg_len)) { kfree(msg); msg = NULL; ret = -EFAULT; break; } Loading
drivers/platform/msm/ipa/ipa_v3/ipa_intf.c +4 −0 Original line number Diff line number Diff line Loading @@ -570,6 +570,8 @@ ssize_t ipa3_read(struct file *filp, char __user *buf, size_t count, if (copy_to_user(buf, &msg->meta, sizeof(struct ipa_msg_meta))) { ret = -EFAULT; kfree(msg); msg = NULL; break; } buf += sizeof(struct ipa_msg_meta); Loading @@ -578,6 +580,8 @@ ssize_t ipa3_read(struct file *filp, char __user *buf, size_t count, if (copy_to_user(buf, msg->buff, msg->meta.msg_len)) { ret = -EFAULT; kfree(msg); msg = NULL; break; } buf += msg->meta.msg_len; Loading