Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 May 2016 07:21:16 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r300485 - stable/9/sys/kern
Message-ID:  <201605230721.u4N7LGId023778@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Mon May 23 07:21:16 2016
New Revision: 300485
URL: https://svnweb.freebsd.org/changeset/base/300485

Log:
  MFC r299916: vfs_read_dirent: increment ncookies after adding a cookie

Modified:
  stable/9/sys/kern/vfs_subr.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/kern/vfs_subr.c
==============================================================================
--- stable/9/sys/kern/vfs_subr.c	Mon May 23 07:21:01 2016	(r300484)
+++ stable/9/sys/kern/vfs_subr.c	Mon May 23 07:21:16 2016	(r300485)
@@ -4687,6 +4687,7 @@ vfs_read_dirent(struct vop_readdir_args 
 	*ap->a_cookies = realloc(*ap->a_cookies,
 	    (*ap->a_ncookies + 1) * sizeof(u_long), M_TEMP, M_WAITOK | M_ZERO);
 	(*ap->a_cookies)[*ap->a_ncookies] = off;
+	*ap->a_ncookies += 1;
 	return (0);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605230721.u4N7LGId023778>