summaryrefslogtreecommitdiffstats
path: root/drivers/greybus
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2021-03-26 16:22:54 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-02 16:24:56 +0200
commit012ac583aa9b512707b39b5a9afb303089a222fe (patch)
treea18764b6301c8f57fd48f66a98b293abcae9d116 /drivers/greybus
parentmisc: hpilo: MAINTAINERS: add entry for hpilo (diff)
downloadlinux-012ac583aa9b512707b39b5a9afb303089a222fe.tar.xz
linux-012ac583aa9b512707b39b5a9afb303089a222fe.zip
greybus: remove stray nul byte in apb_log_enable_read output
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>
Diffstat (limited to 'drivers/greybus')
-rw-r--r--drivers/greybus/es2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/greybus/es2.c b/drivers/greybus/es2.c
index 48ad154df3a7..86a7fbc7fe13 100644
--- 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,