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

Commit c0d3e166 authored by Yufen Yu's avatar Yufen Yu Committed by Greg Kroah-Hartman
Browse files

nvme: fix memory leak for power latency tolerance



[ Upstream commit 510a405d945bc985abc513fafe45890cac34fafa ]

Unconditionally hide device pm latency tolerance when uninitializing
the controller to ensure all qos resources are released so that we're
not leaking this memory. This is safe to call if none were allocated in
the first place, or were previously freed.

Fixes: c5552fde("nvme: Enable autonomous power state transitions")
Suggested-by: default avatarKeith Busch <keith.busch@intel.com>
Tested-by: default avatarDavid Milburn <dmilburn@redhat.com>
Signed-off-by: default avatarYufen Yu <yuyufen@huawei.com>
[changelog]
Signed-off-by: default avatarKeith Busch <keith.busch@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ddda7e85
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment