Submit #2773 ยป 0001-sys-vfs-hammer-fix-off-by-one-error-in-hammer-volume.patch
sys/vfs/hammer/hammer_volume.c | ||
---|---|---|
return (EINVAL);
|
||
}
|
||
if (hmp->nvolumes + 1 >= HAMMER_MAX_VOLUMES) {
|
||
if (hmp->nvolumes >= HAMMER_MAX_VOLUMES) {
|
||
kprintf("Max number of HAMMER volumes exceeded\n");
|
||
return (EINVAL);
|
||
}
|