diff options
| author | Michal Marek <mmarek@suse.cz> | 2010-08-04 13:59:13 +0200 | 
|---|---|---|
| committer | Michal Marek <mmarek@suse.cz> | 2010-08-04 13:59:13 +0200 | 
| commit | 772320e84588dcbe1600ffb83e5f328f2209ac2a (patch) | |
| tree | a7de21b79340aeaa17c58126f6b801b82c77b53a /lib/dma-debug.c | |
| parent | 1ce53adf13a54375d2a5c7cdbe341b2558389615 (diff) | |
| parent | 9fe6206f400646a2322096b56c59891d530e8d51 (diff) | |
Merge commit 'v2.6.35' into kbuild/kbuild
Conflicts:
	arch/powerpc/Makefile
Diffstat (limited to 'lib/dma-debug.c')
| -rw-r--r-- | lib/dma-debug.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dma-debug.c b/lib/dma-debug.c index 7d2f0b33e5a..01e64270e24 100644 --- 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.  	 */ -	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; @@ -587,7 +587,7 @@ out_unlock:  	return count;  } -const struct file_operations filter_fops = { +static const struct file_operations filter_fops = {  	.read  = filter_read,  	.write = filter_write,  };  | 
