projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4fc5a7
)
md: add a newline when printing parameter 'start_ro' by sysfs
author
Xiongfeng Wang
<wangxiongfeng2@huawei.com>
Mon, 11 May 2020 08:23:25 +0000
(16:23 +0800)
committer
Song Liu
<songliubraving@fb.com>
Wed, 13 May 2020 18:49:19 +0000
(11:49 -0700)
Add a missing newline when printing module parameter 'start_ro' by
sysfs.
Signed-off-by: Xiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
drivers/md/md.c
patch
|
blob
|
history
diff --git
a/drivers/md/md.c
b/drivers/md/md.c
index
79e36cb
..
f567f53
100644
(file)
--- a/
drivers/md/md.c
+++ b/
drivers/md/md.c
@@
-9810,7
+9810,7
@@
module_exit(md_exit)
static int get_ro(char *buffer, const struct kernel_param *kp)
{
- return sprintf(buffer, "%d", start_readonly);
+ return sprintf(buffer, "%d
\n
", start_readonly);
}
static int set_ro(const char *val, const struct kernel_param *kp)
{