diff options
author | Shreyas Siravara <sshreyas@fb.com> | 2017-12-07 08:00:16 -0800 |
---|---|---|
committer | Jeff Darcy <jeff@pl.atyp.us> | 2017-12-08 22:33:20 +0000 |
commit | 1926cada4a7acf48aa7cbf5ef8bb8942ae10b522 (patch) | |
tree | 060a48ca983a9cb6052865cf2d44ae01d8ae26a9 /xlators/nfs/server/src/exports.h | |
parent | 742a4eed244833761697646044f20675d1411292 (diff) |
nfs: Reference count export items
Export items are used in the auth cache and need to be reference
counted to avoid use-after free bugs.
Change-Id: I5cdcdc1cc6abad26c7077d66a14f263da07678ac
BUG: 1522847
Signed-off-by: Shreyas Siravara <sshreyas@fb.com>
Diffstat (limited to 'xlators/nfs/server/src/exports.h')
-rw-r--r-- | xlators/nfs/server/src/exports.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/nfs/server/src/exports.h b/xlators/nfs/server/src/exports.h index 0079b9a3deb..87795dadaee 100644 --- a/xlators/nfs/server/src/exports.h +++ b/xlators/nfs/server/src/exports.h @@ -55,6 +55,7 @@ struct export_options { struct export_item { char *name; /* Name of the export item */ struct export_options *opts; /* NFS Options */ + GF_REF_DECL; }; struct export_dir { |