Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40820
b: refs/heads/master
c: bfc5ecd
h: refs/heads/master
v: v3
  • Loading branch information
Alasdair G Kergon authored and Linus Torvalds committed Nov 9, 2006
1 parent 2decabf commit a2c22a1
Show file tree
Hide file tree
Showing 2 changed files with 8 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: c06cb8b1c4d25e5b4d7a2d7c2462619de1e0dbc4
refs/heads/master: bfc5ecdf48b529f6a2bd98ba26bfac39ca8cd8a5
9 changes: 7 additions & 2 deletions trunk/drivers/md/dm-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,9 +606,14 @@ static struct hash_cell *__find_device_hash_cell(struct dm_ioctl *param)
return __get_name_cell(param->name);

md = dm_get_md(huge_decode_dev(param->dev));
if (md)
mdptr = dm_get_mdptr(md);
if (!md)
goto out;

mdptr = dm_get_mdptr(md);
if (!mdptr)
dm_put(md);

out:
return mdptr;
}

Expand Down

0 comments on commit a2c22a1

Please sign in to comment.