projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
[firefly-linux-kernel-4.4.55.git]
/
lib
/
dynamic_debug.c
diff --git
a/lib/dynamic_debug.c
b/lib/dynamic_debug.c
index f9350291598825a214068eb338e41f07edffb8c8..3df8eb17a607932bf8091e89c796c338c323c29b 100644
(file)
--- a/
lib/dynamic_debug.c
+++ b/
lib/dynamic_debug.c
@@
-25,6
+25,7
@@
#include <linux/uaccess.h>
#include <linux/dynamic_debug.h>
#include <linux/debugfs.h>
#include <linux/uaccess.h>
#include <linux/dynamic_debug.h>
#include <linux/debugfs.h>
+#include <linux/slab.h>
extern struct _ddebug __start___verbose[];
extern struct _ddebug __stop___verbose[];
extern struct _ddebug __start___verbose[];
extern struct _ddebug __stop___verbose[];
@@
-455,7
+456,7
@@
static ssize_t ddebug_proc_write(struct file *file, const char __user *ubuf,
__func__, (int)len);
nwords = ddebug_tokenize(tmpbuf, words, MAXWORDS);
__func__, (int)len);
nwords = ddebug_tokenize(tmpbuf, words, MAXWORDS);
- if (nwords < 0)
+ if (nwords <
=
0)
return -EINVAL;
if (ddebug_parse_query(words, nwords-1, &query))
return -EINVAL;
return -EINVAL;
if (ddebug_parse_query(words, nwords-1, &query))
return -EINVAL;