diff options
| -rw-r--r-- | drivers/remoteproc/remoteproc_debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/remoteproc/remoteproc_debugfs.c b/drivers/remoteproc/remoteproc_debugfs.c index ea90a5643db3..157a57309601 100644 --- a/drivers/remoteproc/remoteproc_debugfs.c +++ b/drivers/remoteproc/remoteproc_debugfs.c | |||
| @@ -161,7 +161,7 @@ rproc_recovery_write(struct file *filp, const char __user *user_buf, | |||
| 161 | 161 | ||
| 162 | ret = copy_from_user(buf, user_buf, count); | 162 | ret = copy_from_user(buf, user_buf, count); |
| 163 | if (ret) | 163 | if (ret) |
| 164 | return ret; | 164 | return -EFAULT; |
| 165 | 165 | ||
| 166 | /* remove end of line */ | 166 | /* remove end of line */ |
| 167 | if (buf[count - 1] == '\n') | 167 | if (buf[count - 1] == '\n') |
