zfs boot: fix error handling in zfs_readdir
Found by: clang static analyzer MFC after: 4 days
This commit is contained in:
parent
b2830a9649
commit
4b0562e63c
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user