diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2018-12-13 21:34:07 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-12-13 21:58:23 +0100 |
commit | 092ff0520070fad8407b196f3bb6156ce77a6f98 (patch) | |
tree | 44d10a51b31ed806f0b4ec021d0df02061c6d923 | |
parent | Merge branch 'nvme-4.21' of git://git.infradead.org/nvme into for-4.21/block (diff) | |
download | linux-092ff0520070fad8407b196f3bb6156ce77a6f98.tar.xz linux-092ff0520070fad8407b196f3bb6156ce77a6f98.zip |
nvme: fix kernel paging oops
free the controller discard_page correctly.
Fixes: cb5b7262b011 ("nvme: provide fallback for discard alloc failure")
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | drivers/nvme/host/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 4d8ee7186268..136512e8ba58 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -3596,7 +3596,7 @@ static void nvme_free_ctrl(struct device *dev) ida_simple_remove(&nvme_instance_ida, ctrl->instance); kfree(ctrl->effects); nvme_mpath_uninit(ctrl); - kfree(ctrl->discard_page); + __free_page(ctrl->discard_page); if (subsys) { mutex_lock(&subsys->lock); |