libafs: fix error location code in LINUX/osi_export
authorMichael Meffie <mmeffie@sinenomine.net>
Fri, 1 Aug 2014 22:27:35 +0000 (18:27 -0400)
committerD Brashear <shadow@your-file-system.com>
Wed, 6 Aug 2014 14:17:15 +0000 (10:17 -0400)
Fix the missing error location code introduced in commit
40fb2650b783fbafe51aefd3d0af7a6b0536c265
libafs: allocate vattrs in LINUX to reduce stack used

Use location number 104, which is the next in the sequence.

The code in this module is compiled when building the
nfs translator, which is only built under linux when
configure detects it is possible.

Thanks to Andrew Deason for spotting this error.

Change-Id: I00c834bc915fa3be7d5f27467895930e4f62aa76
Reviewed-on: http://gerrit.openafs.org/11351
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: D Brashear <shadow@your-file-system.com>

src/afs/LINUX/osi_export.c

index b68f6b2..57c7f45 100644 (file)
@@ -473,7 +473,7 @@ static struct dentry *get_dentry_from_fid(cred_t *credp, struct VenusFid *afid)
 
     code = afs_CreateAttr(&vattr);
     if (code) {
-       return ERR_PTR(-afs_CheckCode(code, NULL, xxx));
+       return ERR_PTR(-afs_CheckCode(code, NULL, 104));
     }
 
     code = afs_CreateReq(&treq, credp);