diff options
-rw-r--r-- | fs/afs/vlocation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/afs/vlocation.c b/fs/afs/vlocation.c index 7b4bbe48112d..849fc3160cb5 100644 --- a/fs/afs/vlocation.c +++ b/fs/afs/vlocation.c | |||
@@ -382,7 +382,7 @@ struct afs_vlocation *afs_vlocation_lookup(struct afs_cell *cell, | |||
382 | cell->name, key_serial(key), | 382 | cell->name, key_serial(key), |
383 | (int) namesz, (int) namesz, name, namesz); | 383 | (int) namesz, (int) namesz, name, namesz); |
384 | 384 | ||
385 | if (namesz > sizeof(vl->vldb.name)) { | 385 | if (namesz >= sizeof(vl->vldb.name)) { |
386 | _leave(" = -ENAMETOOLONG"); | 386 | _leave(" = -ENAMETOOLONG"); |
387 | return ERR_PTR(-ENAMETOOLONG); | 387 | return ERR_PTR(-ENAMETOOLONG); |
388 | } | 388 | } |