diff options
| -rw-r--r-- | xlators/features/quota/src/quota.c | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c index 5224c475bdc..bb5dc7aba1d 100644 --- a/xlators/features/quota/src/quota.c +++ b/xlators/features/quota/src/quota.c @@ -3387,6 +3387,10 @@ quota_fsetxattr (call_frame_t *frame, xlator_t *this, fd_t *fd,          if (hard_lim > 0) {                  local = quota_local_new (); +                if (local == NULL) { +                        op_errno = ENOMEM; +                        goto err; +                }                  frame->local = local;                  local->loc.inode = inode_ref (fd->inode);  | 
