]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/cachefiles/xattr.c
cachefiles: Fix an assertion failure when trying to update a failed object
[mirror_ubuntu-bionic-kernel.git] / fs / cachefiles / xattr.c
index d31c1a72d8a5ba90255ff7537a824b9c8036b749..92a8026da9b55bf17d434f428cd1029e3ade3396 100644 (file)
@@ -134,7 +134,8 @@ int cachefiles_update_object_xattr(struct cachefiles_object *object,
        struct dentry *dentry = object->dentry;
        int ret;
 
-       ASSERT(dentry);
+       if (!dentry)
+               return -ESTALE;
 
        _enter("%p,#%d", object, auxdata->len);