Date: Mon, 31 May 2010 09:06:03 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r208669 - head/sys/boot/zfs Message-ID: <201005310906.o4V963LD020340@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Mon May 31 09:06:03 2010 New Revision: 208669 URL: http://svn.freebsd.org/changeset/base/208669 Log: zfs boot: fix error handling in zfs_readdir Found by: clang static analyzer MFC after: 4 days Modified: head/sys/boot/zfs/zfs.c Modified: head/sys/boot/zfs/zfs.c ============================================================================== --- head/sys/boot/zfs/zfs.c Mon May 31 07:14:40 2010 (r208668) +++ head/sys/boot/zfs/zfs.c Mon May 31 09:06:03 2010 (r208669) @@ -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?201005310906.o4V963LD020340>