diff options
Diffstat (limited to 'libglusterfs/src/glusterfs/syncop.h')
| -rw-r--r-- | libglusterfs/src/glusterfs/syncop.h | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/libglusterfs/src/glusterfs/syncop.h b/libglusterfs/src/glusterfs/syncop.h index b00988eeef1..3614d969264 100644 --- a/libglusterfs/src/glusterfs/syncop.h +++ b/libglusterfs/src/glusterfs/syncop.h @@ -244,6 +244,12 @@ struct syncopctx {          else                                                                   \              frame = syncop_create_frame(THIS);                                 \                                                                                 \ +        if (!frame) {                                                          \ +            stb->op_ret = -1;                                                  \ +            stb->op_errno = errno;                                             \ +            break;                                                             \ +        }                                                                      \ +                                                                               \          if (task) {                                                            \              frame->root->uid = task->uid;                                      \              frame->root->gid = task->gid;                                      \  | 
