projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4b3ada
)
blktrace: small cleanup in blk_msg_write()
author
Li Zefan
<lizf@cn.fujitsu.com>
Fri, 3 Apr 2009 07:31:34 +0000
(15:31 +0800)
committer
Ingo Molnar
<mingo@elte.hu>
Fri, 3 Apr 2009 12:48:11 +0000
(14:48 +0200)
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: "Alan D. Brunelle" <alan.brunelle@hp.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
LKML-Reference: <
49D5BB56
.
7000807
@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/blktrace.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/trace/blktrace.c
b/kernel/trace/blktrace.c
index a400b861fad3074cff6d7db7a53749793c6cba75..73d7860b72e27053791343103c544c10161c2e73 100644
(file)
--- a/
kernel/trace/blktrace.c
+++ b/
kernel/trace/blktrace.c
@@
-327,7
+327,7
@@
static ssize_t blk_msg_write(struct file *filp, const char __user *buffer,
char *msg;
struct blk_trace *bt;
- if (count >
BLK_TN_MAX_MSG - 1
)
+ if (count >
= BLK_TN_MAX_MSG
)
return -EINVAL;
msg = kmalloc(count + 1, GFP_KERNEL);