diff options
Diffstat (limited to 'fs/btrfs/export.c')
-rw-r--r-- | fs/btrfs/export.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/export.c b/fs/btrfs/export.c index 6f0444473594..3220ad1aafc8 100644 --- a/fs/btrfs/export.c +++ b/fs/btrfs/export.c | |||
@@ -176,6 +176,8 @@ static struct dentry *btrfs_get_parent(struct dentry *child) | |||
176 | int ret; | 176 | int ret; |
177 | 177 | ||
178 | path = btrfs_alloc_path(); | 178 | path = btrfs_alloc_path(); |
179 | if (!path) | ||
180 | return ERR_PTR(-ENOMEM); | ||
179 | 181 | ||
180 | if (dir->i_ino == BTRFS_FIRST_FREE_OBJECTID) { | 182 | if (dir->i_ino == BTRFS_FIRST_FREE_OBJECTID) { |
181 | key.objectid = root->root_key.objectid; | 183 | key.objectid = root->root_key.objectid; |