git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
thinkpad-acpi: update HKEY and hotkey subdriver documentation (v2)
[pandora-kernel.git]
/
lib
/
dma-debug.c
diff --git
a/lib/dma-debug.c
b/lib/dma-debug.c
index
ba8b670
..
01e6427
100644
(file)
--- a/
lib/dma-debug.c
+++ b/
lib/dma-debug.c
@@
-570,7
+570,7
@@
static ssize_t filter_write(struct file *file, const char __user *userbuf,
* Now parse out the first token and use it as the name for the
* driver to filter for.
*/
* Now parse out the first token and use it as the name for the
* driver to filter for.
*/
- for (i = 0; i < NAME_MAX_LEN; ++i) {
+ for (i = 0; i < NAME_MAX_LEN
- 1
; ++i) {
current_driver_name[i] = buf[i];
if (isspace(buf[i]) || buf[i] == ' ' || buf[i] == 0)
break;
current_driver_name[i] = buf[i];
if (isspace(buf[i]) || buf[i] == ' ' || buf[i] == 0)
break;