X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=drivers%2Fremoteproc%2Fremoteproc_debugfs.c;h=6fdfa688281a802cd1542290adf4557e4816b33e;hb=47fff9fd8a7848c44c83b34ad7825d2185b9b319;hp=916af5096f57b93b7f7e148d28716329b31c7be6;hpb=d0021d3bdfe9d551859bca1f58da0e6be8e26043;p=deliverable%2Flinux.git diff --git a/drivers/remoteproc/remoteproc_debugfs.c b/drivers/remoteproc/remoteproc_debugfs.c index 916af5096f57..6fdfa688281a 100644 --- a/drivers/remoteproc/remoteproc_debugfs.c +++ b/drivers/remoteproc/remoteproc_debugfs.c @@ -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)