diff options
author | Ingo Molnar <mingo@kernel.org> | 2016-04-23 14:12:10 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-04-23 14:12:10 +0200 |
commit | 65cbbd037b3d7be0a40bbdb5da9d43b0fccf17ee (patch) | |
tree | 02b22c99008630010f28f45f502f55915f1014c2 /drivers/md/dm.c | |
parent | Merge tag 'perf-core-for-mingo-20160415' of git://git.kernel.org/pub/scm/linu... (diff) | |
parent | perf/core: Make sysctl_perf_cpu_time_max_percent conform to documentation (diff) | |
download | linux-65cbbd037b3d7be0a40bbdb5da9d43b0fccf17ee.tar.xz linux-65cbbd037b3d7be0a40bbdb5da9d43b0fccf17ee.zip |
Merge branch 'perf/urgent' into perf/core, to resolve conflict
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r-- | drivers/md/dm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index be4905769a45..3d3ac13287a4 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -1662,8 +1662,10 @@ static int __clone_and_map_data_bio(struct clone_info *ci, struct dm_target *ti, tio = alloc_tio(ci, ti, target_bio_nr); tio->len_ptr = len; r = clone_bio(tio, bio, sector, *len); - if (r < 0) + if (r < 0) { + free_tio(ci->md, tio); break; + } __map_bio(tio); } |