diff options
author | marks <none@none> | 2005-12-11 15:32:56 -0800 |
---|---|---|
committer | marks <none@none> | 2005-12-11 15:32:56 -0800 |
commit | d13f2f5041df5ab78f01e6e3e9b48355ae55bb26 (patch) | |
tree | 0eb9cc279764861221cbea63e7a43226c1da8ce9 /usr/src/uts/common/fs/gfs.c | |
parent | 1bde0be88b435e0d708ac4f377f1a521530f2ebd (diff) | |
download | illumos-joyent-d13f2f5041df5ab78f01e6e3e9b48355ae55bb26.tar.gz |
6360864 lofs blows chunks when file does not exist
Diffstat (limited to 'usr/src/uts/common/fs/gfs.c')
-rw-r--r-- | usr/src/uts/common/fs/gfs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/src/uts/common/fs/gfs.c b/usr/src/uts/common/fs/gfs.c index 0f2ad1bddc..535d11263f 100644 --- a/usr/src/uts/common/fs/gfs.c +++ b/usr/src/uts/common/fs/gfs.c @@ -720,7 +720,10 @@ gfs_dir_lookup(vnode_t *dvp, const char *nm, vnode_t **vpp) out: gfs_dir_unlock(dp); - *vpp = vp; + if (ret == 0) + *vpp = vp; + else + *vpp = NULL; return (ret); } |