Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 May 2016 07:21:02 +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-10@freebsd.org
Subject:   svn commit: r300484 - stable/10/sys/kern
Message-ID:  <201605230721.u4N7L29e023719@repo.freebsd.org>

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

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

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

Modified: stable/10/sys/kern/vfs_subr.c
==============================================================================
--- stable/10/sys/kern/vfs_subr.c	Mon May 23 07:17:53 2016	(r300483)
+++ stable/10/sys/kern/vfs_subr.c	Mon May 23 07:21:01 2016	(r300484)
@@ -4777,6 +4777,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.u4N7L29e023719>