Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 128781
b: refs/heads/master
c: 515dc32
h: refs/heads/master
i:
  128779: 304432f
v: v3
  • Loading branch information
Chris Mason committed Sep 25, 2008
1 parent 99668da commit 52d1a33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: 6af5ac3c1aede574acde5fc477f1a1c876fb568e
refs/heads/master: 515dc3228c568f9df8b634f82b3471e20205ac16
3 changes: 1 addition & 2 deletions trunk/fs/btrfs/volumes.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static int device_list_add(const char *path,

fs_devices = find_fsid(disk_super->fsid);
if (!fs_devices) {
fs_devices = kmalloc(sizeof(*fs_devices), GFP_NOFS);
fs_devices = kzalloc(sizeof(*fs_devices), GFP_NOFS);
if (!fs_devices)
return -ENOMEM;
INIT_LIST_HEAD(&fs_devices->devices);
Expand All @@ -129,7 +129,6 @@ static int device_list_add(const char *path,
memcpy(fs_devices->fsid, disk_super->fsid, BTRFS_FSID_SIZE);
fs_devices->latest_devid = devid;
fs_devices->latest_trans = found_transid;
fs_devices->num_devices = 0;
device = NULL;
} else {
device = __find_device(&fs_devices->devices, devid,
Expand Down

0 comments on commit 52d1a33

Please sign in to comment.