Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 154233
b: refs/heads/master
c: 4d89b7b
h: refs/heads/master
i:
  154231: ccc3322
v: v3
  • Loading branch information
Milan Broz authored and Alasdair G Kergon committed Jun 22, 2009
1 parent cd8c50f commit 0d05dd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e094f4f15f5169526c7200b9bde44b900548a81e
refs/heads/master: 4d89b7b4e4726893453d0fb4ddbb5b3e16353994
4 changes: 4 additions & 0 deletions trunk/drivers/md/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1777,6 +1777,10 @@ struct mapped_device *dm_get_from_kobject(struct kobject *kobj)
if (&md->kobj != kobj)
return NULL;

if (test_bit(DMF_FREEING, &md->flags) ||
test_bit(DMF_DELETING, &md->flags))
return NULL;

dm_get(md);
return md;
}
Expand Down

0 comments on commit 0d05dd8

Please sign in to comment.