X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=lib%2Fdynamic_debug.c;h=3df8eb17a607932bf8091e89c796c338c323c29b;hb=81bdf5bd7349bd4523538cbd7878f334bc2bfe14;hp=d6b8b9b1abfedf5ca023164b76d81ca06d0622a2;hpb=cc755896a4274f11283bca32d1d658203844057a;p=mirror_ubuntu-artful-kernel.git diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index d6b8b9b1abfe..3df8eb17a607 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c @@ -456,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); - if (nwords < 0) + if (nwords <= 0) return -EINVAL; if (ddebug_parse_query(words, nwords-1, &query)) return -EINVAL;