diff --git a/[refs] b/[refs] index 4204f38cf99d..f0120e6a2d32 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 12ff4bf58b64ad3b8fb8e27889c99dcd5aa6fb0b +refs/heads/master: 39a37ce1cc5eef420604fa68b776ff5dab400340 diff --git a/trunk/lib/dma-debug.c b/trunk/lib/dma-debug.c index ba8b67039d13..01e64270e246 100644 --- a/trunk/lib/dma-debug.c +++ b/trunk/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. */ - 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;