X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fbtrfs%2Fexport.c;h=ff27d7a477b2012d1cd900164c6596ed77a9efb2;hb=4f680ceafafebed72c302d829d764de72710c169;hp=9786963b07e5be25914a15c2d863da2d13700d33;hpb=eee2a817df7c5a6e569f353f8be78cc1b3604bb6;p=mv-sheeva.git diff --git a/fs/btrfs/export.c b/fs/btrfs/export.c index 9786963b07e..ff27d7a477b 100644 --- a/fs/btrfs/export.c +++ b/fs/btrfs/export.c @@ -171,6 +171,8 @@ static struct dentry *btrfs_get_parent(struct dentry *child) int ret; path = btrfs_alloc_path(); + if (!path) + return ERR_PTR(-ENOMEM); if (dir->i_ino == BTRFS_FIRST_FREE_OBJECTID) { key.objectid = root->root_key.objectid;