summaryrefslogtreecommitdiffstats
path: root/xlators/encryption/crypt/src/crypt.h
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/encryption/crypt/src/crypt.h')
-rw-r--r--xlators/encryption/crypt/src/crypt.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/xlators/encryption/crypt/src/crypt.h b/xlators/encryption/crypt/src/crypt.h
index 6c014535f0a..5a2b1a9cc3b 100644
--- a/xlators/encryption/crypt/src/crypt.h
+++ b/xlators/encryption/crypt/src/crypt.h
@@ -876,6 +876,19 @@ static inline mtd_op_t linkop_mtdop_dispatch(glusterfs_fop_t fop)
}
}
+#define CRYPT_STACK_UNWIND(fop, frame, params ...) \
+ do { \
+ crypt_local_t *__local = NULL; \
+ if (frame) { \
+ __local = frame->local; \
+ frame->local = NULL; \
+ } \
+ STACK_UNWIND_STRICT (fop, frame, params); \
+ if (__local) { \
+ GF_FREE (__local); \
+ } \
+ } while (0)
+
#endif /* __CRYPT_H__ */
/*