From: Michael Meffie Date: Fri, 1 Aug 2014 22:27:35 +0000 (-0400) Subject: libafs: fix error location code in LINUX/osi_export X-Git-Tag: upstream/1.6.10_pre1^2~35 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=a4483520eab87001353c9c309c4e7d65ffe6cc9a;p=packages%2Fo%2Fopenafs.git libafs: fix error location code in LINUX/osi_export 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. Reviewed-on: http://gerrit.openafs.org/11351 Reviewed-by: Andrew Deason Tested-by: Andrew Deason Reviewed-by: Benjamin Kaduk Reviewed-by: D Brashear (cherry picked from commit 05dbea9fc4da02c6349d9e0b69656acb3254cfe8) Change-Id: I5bb69b68716f6a7147d24c0bd698c10488bca2d4 Reviewed-on: http://gerrit.openafs.org/11366 Tested-by: BuildBot Reviewed-by: Andrew Deason Reviewed-by: Benjamin Kaduk Reviewed-by: Stephan Wiesand --- diff --git a/src/afs/LINUX/osi_export.c b/src/afs/LINUX/osi_export.c index 1d564f7b7..6a3860d89 100644 --- a/src/afs/LINUX/osi_export.c +++ b/src/afs/LINUX/osi_export.c @@ -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);