kernel - Fix missing initialization in vnode_pager_lock()
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 4 Nov 2020 18:35:22 +0000 (10:35 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 4 Nov 2020 18:35:22 +0000 (10:35 -0800)
commit2d396014a862c53ca59f2674f7ac31b1b5bb5b3c
tree161a03a6143524fbc1125fffc68242127ed92e1f
parent0f56646560a164a9a58f3af905ddc388dc94c0b1
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
sys/vm/vnode_pager.c