aboutsummaryrefslogtreecommitdiff
path: root/drivers/md/dm.c
diff options
context:
space:
mode:
authorAlex Shi <alex.shi@linaro.org>2016-03-18 12:02:43 +0800
committerAlex Shi <alex.shi@linaro.org>2016-03-18 12:02:43 +0800
commit241bca50dd1ae71a7cd7eebe579bd131bf986167 (patch)
treef9d4af30aefba27b3c00074d935f8b5b01d54939 /drivers/md/dm.c
parent1ebca975cbc0ab4708126e26bf2729777184f1e6 (diff)
parent5cc3b58828a8bb2ebb34de96d1aec1564f912a31 (diff)
Merge branch 'linux-linaro-lsk-v4.1' into linux-linaro-lsk-v4.1-androidlsk-v4.1-16.03-android
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r--drivers/md/dm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index 0782df7d9c76..12d72660ebc9 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -1146,6 +1146,8 @@ static void dm_unprep_request(struct request *rq)
if (clone)
free_rq_clone(clone);
+ else if (!tio->md->queue->mq_ops)
+ free_rq_tio(tio);
}
/*