Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154263
b: refs/heads/master
c: 1b6da75
h: refs/heads/master
i:
  154261: e58099d
  154259: 0d1689c
  154255: fef4f98
v: v3
  • Loading branch information
Jonthan Brassow authored and Alasdair G Kergon committed Jun 22, 2009
1 parent 313da95 commit c38549a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: f392ba889b019602976082bfe7bf486c2594f85c
refs/heads/master: 1b6da754594e6e26c24e6fbc1a34f9c03e4617a3
8 changes: 3 additions & 5 deletions trunk/drivers/md/dm-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,8 @@ static void free_devices(struct list_head *devices)
list_for_each_safe(tmp, next, devices) {
struct dm_dev_internal *dd =
list_entry(tmp, struct dm_dev_internal, list);
DMWARN("dm_table_destroy: dm_put_device call missing for %s",
dd->dm_dev.name);
kfree(dd);
}
}
Expand Down Expand Up @@ -296,12 +298,8 @@ void dm_table_destroy(struct dm_table *t)
vfree(t->highs);

/* free the device list */
if (t->devices.next != &t->devices) {
DMWARN("devices still present during destroy: "
"dm_table_remove_device calls missing");

if (t->devices.next != &t->devices)
free_devices(&t->devices);
}

kfree(t);
}
Expand Down

0 comments on commit c38549a

Please sign in to comment.