Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jun 2010 07:46:54 +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-7@freebsd.org
Subject:   svn commit: r209415 - stable/7/sys/boot/zfs
Message-ID:  <201006220746.o5M7ksBr078672@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Tue Jun 22 07:46:54 2010
New Revision: 209415
URL: http://svn.freebsd.org/changeset/base/209415

Log:
  MFC r208669: zfs boot: fix error handling in zfs_readdir

Modified:
  stable/7/sys/boot/zfs/zfs.c
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/boot/zfs/zfs.c
==============================================================================
--- stable/7/sys/boot/zfs/zfs.c	Tue Jun 22 07:38:30 2010	(r209414)
+++ stable/7/sys/boot/zfs/zfs.c	Tue Jun 22 07:46:54 2010	(r209415)
@@ -265,6 +265,8 @@ zfs_readdir(struct open_file *f, struct 
 
 		rc = dnode_read(spa, &fp->f_dnode,
 				fp->f_seekp, &mze, sizeof(mze));
+		if (rc)
+			return (rc);
 		fp->f_seekp += sizeof(mze);
 
 		if (!mze.mze_name[0])



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