svn commit: r209415 - stable/7/sys/boot/zfs
Andriy Gapon
avg at FreeBSD.org
Tue Jun 22 07:46:55 UTC 2010
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])
More information about the svn-src-stable-7
mailing list