git: kernel - Fix missing initialization in vnode_pager_lock()

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Nov 4 13:35:34 PST 2020


commit 2d396014a862c53ca59f2674f7ac31b1b5bb5b3c
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Nov 4 10:35:22 2020 -0800

    kernel - Fix missing initialization in vnode_pager_lock()
    
    * struct vnode *vp was not being initialized to NULL, causing
      a garbage return not caught by gcc if no while() condition
      is met.
    
    * Only occurred with -O0.  The optimized case doesn't seem to hit
      the issue through luck.
    
    Reported-by: zrj

Summary of changes:
 sys/vm/vnode_pager.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2d396014a862c53ca59f2674f7ac31b1b5bb5b3c


-- 
DragonFly BSD source repository



More information about the Commits mailing list