projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb4a2d5
)
greybus: remove stray nul byte in apb_log_enable_read output
author
Rasmus Villemoes
<linux@rasmusvillemoes.dk>
Fri, 26 Mar 2021 15:22:54 +0000
(16:22 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 2 Apr 2021 14:24:56 +0000
(16:24 +0200)
Including a nul byte in the otherwise human-readable ascii output
from this debugfs file is probably not intended.
Acked-by: Alex Elder <elder@linaro.org>
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Link:
https://lore.kernel.org/r/20210326152254.733066-1-linux@rasmusvillemoes.dk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/greybus/es2.c
patch
|
blob
|
history
diff --git
a/drivers/greybus/es2.c
b/drivers/greybus/es2.c
index
48ad154
..
86a7fbc
100644
(file)
--- a/
drivers/greybus/es2.c
+++ b/
drivers/greybus/es2.c
@@
-1171,7
+1171,7
@@
static ssize_t apb_log_enable_read(struct file *f, char __user *buf,
char tmp_buf[3];
sprintf(tmp_buf, "%d\n", enable);
- return simple_read_from_buffer(buf, count, ppos, tmp_buf,
3
);
+ return simple_read_from_buffer(buf, count, ppos, tmp_buf,
2
);
}
static ssize_t apb_log_enable_write(struct file *f, const char __user *buf,