projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
remoteproc: debugfs: Return error on invalid 'count' value
[deliverable/linux.git]
/
drivers
/
remoteproc
/
remoteproc_debugfs.c
diff --git
a/drivers/remoteproc/remoteproc_debugfs.c
b/drivers/remoteproc/remoteproc_debugfs.c
index 916af5096f57b93b7f7e148d28716329b31c7be6..6fdfa688281a802cd1542290adf4557e4816b33e 100644
(file)
--- 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)
This page took
0.02554 seconds
and
5
git commands to generate.