Mercurial > illumos > illumos-gate
changeset 13822:d13dbeb3e979
3155 nfs: fs_location being asked but not setted return error
Reviewed by: Eric Schrock <eric.schrock@delphix.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
author | Daniil Lunev <d.lunev.mail@gmail.com> |
---|---|
date | Thu, 30 Aug 2012 15:30:57 -0500 |
parents | f353227ba626 |
children | 3abbdbfdfaf3 |
files | usr/src/uts/common/fs/nfs/nfs4_srv_attr.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/common/fs/nfs/nfs4_srv_attr.c Thu Sep 20 10:27:49 2012 +0000 +++ b/usr/src/uts/common/fs/nfs/nfs4_srv_attr.c Thu Aug 30 15:30:57 2012 -0500 @@ -22,6 +22,9 @@ * Copyright 2010 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ +/* + * Copyright 2012 Nexenta Systems, Inc. All rights reserved. + */ #include <sys/systm.h> #include <sys/cmn_err.h> @@ -1585,7 +1588,8 @@ case NFS4ATTR_GETIT: fsl = fetch_referral(sarg->cs->vp, sarg->cs->cr); if (fsl == NULL) - error = EINVAL; + (void) memset(&(na->fs_locations), 0, + sizeof (fs_locations4)); else { na->fs_locations = *fsl; kmem_free(fsl, sizeof (fs_locations4));