OpenAFS Master Repository branch, master, updated. openafs-devel-1_9_1-41-g6997375

Gerrit Code Review gerrit@openafs.org
Fri, 25 Jun 2021 22:04:39 -0400


The following commit has been merged in the master branch:
commit b9d8b69590c09d672486ddefd0a6c7b74e219050
Author: Andrew Deason <adeason@sinenomine.net>
Date:   Fri May 29 14:22:34 2020 -0500

    namei: Calculate offset before use in GetFreeTag
    
    We pass 'offset' to FDH_LOCKFILE here, but 'offset' is calculated a
    few lines below. The compiler doesn't catch this, since FDH_LOCKFILE
    is a macro that ignores the second argument (except on WINNT).
    
    Just move the calculation a few lines above, to ensure 'offset' is set
    before it's actually used, to avoid issues if and when FDH_LOCKFILE is
    changed to use the second argument.
    
    Change-Id: If858005cb83370ca905f93f9d3d7eed2941ddf99
    Reviewed-on: https://gerrit.openafs.org/14654
    Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
    Tested-by: BuildBot <buildbot@rampaginggeek.com>

 src/vol/namei_ops.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

-- 
OpenAFS Master Repository