]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blobdiff - fs/ubifs/crypto.c
Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[mirror_ubuntu-eoan-kernel.git] / fs / ubifs / crypto.c
index 55c508fe8131577e77aae83865cee6b4effc0513..4aaedf2d7f442237ec34e760f27e48c1736db5ed 100644 (file)
@@ -32,7 +32,7 @@ int ubifs_encrypt(const struct inode *inode, struct ubifs_data_node *dn,
        struct page *ret;
        unsigned int pad_len = round_up(in_len, UBIFS_CIPHER_BLOCK_SIZE);
 
-       ubifs_assert(pad_len <= *out_len);
+       ubifs_assert(c, pad_len <= *out_len);
        dn->compr_size = cpu_to_le16(in_len);
 
        /* pad to full block cipher length */
@@ -63,7 +63,7 @@ int ubifs_decrypt(const struct inode *inode, struct ubifs_data_node *dn,
                return -EINVAL;
        }
 
-       ubifs_assert(dlen <= UBIFS_BLOCK_SIZE);
+       ubifs_assert(c, dlen <= UBIFS_BLOCK_SIZE);
        err = fscrypt_decrypt_page(inode, virt_to_page(&dn->data), dlen,
                        offset_in_page(&dn->data), block);
        if (err) {