Project

General

Profile

Submit #2773 ยป 0001-sys-vfs-hammer-fix-off-by-one-error-in-hammer-volume.patch

tkusumi, 01/18/2015 09:43 AM

View differences:

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);
}
    (1-1/1)