summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/export.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2011-02-25 21:27:14 +0100
committerTony Lindgren <tony@atomide.com>2011-02-25 21:27:14 +0100
commit02fa9f0451ac639a687bfc145eefe58703ff220e (patch)
treefe984acc78f22f6eb8fb98efaba8b1ac2f3ad8d9 /fs/btrfs/export.c
parentOMAP2+: clocksource: fix crash on boot when !CONFIG_OMAP_32K_TIMER (diff)
parentomap4: prcm: Fix the CPUx clockdomain offsets (diff)
downloadlinux-02fa9f0451ac639a687bfc145eefe58703ff220e.tar.xz
linux-02fa9f0451ac639a687bfc145eefe58703ff220e.zip
Merge branch 'patches_for_2.6.38rc' of git://git.pwsan.com/linux-2.6 into devel-fixes
Diffstat (limited to 'fs/btrfs/export.c')
-rw-r--r--fs/btrfs/export.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/export.c b/fs/btrfs/export.c
index 9786963b07e5..ff27d7a477b2 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;