Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176554
b: refs/heads/master
c: c50abeb
h: refs/heads/master
v: v3
  • Loading branch information
Mike Anderson authored and Alasdair G Kergon committed Dec 10, 2009
1 parent df2c416 commit d06650d
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 432a212c0dd0f4ca386cf37c5b740ac9dbda4479
refs/heads/master: c50abeb38026ea721a812cf8a9b2fac5d3b7684b
6 changes: 6 additions & 0 deletions trunk/drivers/md/dm-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1303,6 +1303,11 @@ static int target_message(struct dm_ioctl *param, size_t param_size)
if (!table)
goto out_argv;

if (dm_deleting_md(md)) {
r = -ENXIO;
goto out_table;
}

ti = dm_table_find_target(table, tmsg->sector);
if (!dm_target_is_valid(ti)) {
DMWARN("Target message sector outside device.");
Expand All @@ -1314,6 +1319,7 @@ static int target_message(struct dm_ioctl *param, size_t param_size)
r = -EINVAL;
}

out_table:
dm_table_put(table);
out_argv:
kfree(argv);
Expand Down

0 comments on commit d06650d

Please sign in to comment.