]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/ocfs2/xattr.c
ocfs2: add the missing return value check of ocfs2_xattr_get_clusters
[karo-tx-linux.git] / fs / ocfs2 / xattr.c
index 317ef0abccbbd22bf320c31ddc0c99ba9f4aa713..1cbc2231a9f28d9294debf5c71b763882e86a24e 100644 (file)
@@ -5881,6 +5881,10 @@ static int ocfs2_xattr_value_attach_refcount(struct inode *inode,
        while (cpos < clusters) {
                ret = ocfs2_xattr_get_clusters(inode, cpos, &p_cluster,
                                               &num_clusters, el, &ext_flags);
+               if (ret) {
+                       mlog_errno(ret);
+                       break;
+               }
 
                cpos += num_clusters;
                if ((ext_flags & OCFS2_EXT_REFCOUNTED))