Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47fff9fd authored by Lee Jones's avatar Lee Jones Committed by Bjorn Andersson
Browse files

remoteproc: debugfs: Return error on invalid 'count' value



If 'count' value is invalid, return -EINVAL.

Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
[bjorn: changed commit message]
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
parent 99c429cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -157,7 +157,7 @@ rproc_recovery_write(struct file *filp, const char __user *user_buf,
	int ret;

	if (count < 1 || count > sizeof(buf))
		return count;
		return -EINVAL;

	ret = copy_from_user(buf, user_buf, count);
	if (ret)