Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8af436bf authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "md: dm-req-crypt: Fix memory shrink issue"

parents ddd7c472 fb360232
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -872,8 +872,10 @@ static int req_crypt_endio(struct dm_target *ti, struct request *clone,

	/* If it is a write request, do nothing just return. */
	if (encryption_mode == DM_REQ_CRYPT_ENCRYPTION_MODE_TRANSPARENT
		&& rq_data_dir(clone) == READ)
		&& rq_data_dir(clone) == READ) {
		mempool_free(req_io, req_io_pool);
		goto submit_request;
	}

	if (rq_data_dir(clone) == WRITE) {
		rq_for_each_segment(bvec, clone, iter1) {