diff options
| -rw-r--r-- | fs/afs/proc.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/fs/afs/proc.c b/fs/afs/proc.c index 0c3285c8db95..476dcbb79713 100644 --- a/fs/afs/proc.c +++ b/fs/afs/proc.c | |||
| @@ -98,13 +98,13 @@ static int afs_proc_cells_write(struct file *file, char *buf, size_t size) | |||
| 98 | goto inval; | 98 | goto inval; |
| 99 | 99 | ||
| 100 | args = strchr(name, ' '); | 100 | args = strchr(name, ' '); |
| 101 | if (!args) | 101 | if (args) { |
| 102 | goto inval; | 102 | do { |
| 103 | do { | 103 | *args++ = 0; |
| 104 | *args++ = 0; | 104 | } while(*args == ' '); |
| 105 | } while(*args == ' '); | 105 | if (!*args) |
| 106 | if (!*args) | 106 | goto inval; |
| 107 | goto inval; | 107 | } |
| 108 | 108 | ||
| 109 | /* determine command to perform */ | 109 | /* determine command to perform */ |
| 110 | _debug("cmd=%s name=%s args=%s", buf, name, args); | 110 | _debug("cmd=%s name=%s args=%s", buf, name, args); |
| @@ -120,7 +120,6 @@ static int afs_proc_cells_write(struct file *file, char *buf, size_t size) | |||
| 120 | 120 | ||
| 121 | if (test_and_set_bit(AFS_CELL_FL_NO_GC, &cell->flags)) | 121 | if (test_and_set_bit(AFS_CELL_FL_NO_GC, &cell->flags)) |
| 122 | afs_put_cell(net, cell); | 122 | afs_put_cell(net, cell); |
| 123 | printk("kAFS: Added new cell '%s'\n", name); | ||
| 124 | } else { | 123 | } else { |
| 125 | goto inval; | 124 | goto inval; |
| 126 | } | 125 | } |
