summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-rw-r--r--xlators/performance/stat-prefetch/src/stat-prefetch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/performance/stat-prefetch/src/stat-prefetch.c b/xlators/performance/stat-prefetch/src/stat-prefetch.c
index 26bac60b7..28fc71948 100644
--- a/xlators/performance/stat-prefetch/src/stat-prefetch.c
+++ b/xlators/performance/stat-prefetch/src/stat-prefetch.c
@@ -847,6 +847,10 @@ sp_readdir_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
fd_t *fd = NULL;
int32_t ret = 0;
+ if (op_ret == -1) {
+ goto out;
+ }
+
local = frame->local;
if (local == NULL) {
goto out;