zfs boot: fix error handling in zfs_readdir

Found by:	clang static analyzer
MFC after:	4 days
This commit is contained in:
Andriy Gapon 2010-05-31 09:06:03 +00:00
parent b2830a9649
commit 4b0562e63c

View File

@ -265,6 +265,8 @@ zfs_readdir(struct open_file *f, struct dirent *d)
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])