Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fs/afs/vlocation.c: fix off-by-one

This patch fixes an off-by-one error spotted by the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Adrian Bunk and committed by
Linus Torvalds
6551198a f11b7ae8

+1 -1
+1 -1
fs/afs/vlocation.c
··· 382 382 cell->name, key_serial(key), 383 383 (int) namesz, (int) namesz, name, namesz); 384 384 385 - if (namesz > sizeof(vl->vldb.name)) { 385 + if (namesz >= sizeof(vl->vldb.name)) { 386 386 _leave(" = -ENAMETOOLONG"); 387 387 return ERR_PTR(-ENAMETOOLONG); 388 388 }