git: sys/vfs/hammer: Fix off-by-one for snapshot index

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Mon Apr 20 07:06:56 PDT 2015


commit a81b0b4410c17439a1e103cf8778622856c53bc3
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sun Apr 19 03:42:43 2015 +0900

    sys/vfs/hammer: Fix off-by-one for snapshot index
    
    - The index starts from 0 so these ioctls should test 'index >= count'.

Summary of changes:
 sys/vfs/hammer/hammer_ioctl.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a81b0b4410c17439a1e103cf8778622856c53bc3


-- 
DragonFly BSD source repository


More information about the Commits mailing list