mmc: core: Fix tag set memory leak
authorRaul E Rangel <rrangel@chromium.org>
Thu, 2 May 2019 19:07:14 +0000 (13:07 -0600)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 6 May 2019 10:33:03 +0000 (12:33 +0200)
commit43d8dabb4074cf7f3b1404bfbaeba5aa6f3e5cfc
tree361fc9dbe3e6259867d8e8c897cb1b39fd4692ef
parente57112e35c60a847914c75e5163db0f4ba078091
mmc: core: Fix tag set memory leak

The tag set is allocated in mmc_init_queue but never freed. This results
in a memory leak. This change makes sure we free the tag set when the
queue is also freed.

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Fixes: 81196976ed94 ("mmc: block: Add blk-mq support")
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/queue.c