Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166679
b: refs/heads/master
c: fd2696f
h: refs/heads/master
i:
  166677: 0460a9d
  166675: e8164f2
  166671: 6d9bfda
v: v3
  • Loading branch information
Julia Lawall authored and Chris Mason committed Sep 29, 2009
1 parent e372f95 commit 90debc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 49cf6f4529b7945ef51b8e39f0bac630726f8c96
refs/heads/master: fd2696f399e45347c07f1f7f340e8515cace5657
4 changes: 3 additions & 1 deletion trunk/fs/btrfs/volumes.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,10 @@ static struct btrfs_fs_devices *clone_fs_devices(struct btrfs_fs_devices *orig)
goto error;

device->name = kstrdup(orig_dev->name, GFP_NOFS);
if (!device->name)
if (!device->name) {
kfree(device);
goto error;
}

device->devid = orig_dev->devid;
device->work.func = pending_bios_fn;
Expand Down

0 comments on commit 90debc2

Please sign in to comment.