Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
memory tier: release the new_memtier in find_create_memory_tier()
In find_create_memory_tier(), if failed to register device, then we should release new_memtier from the tier list and put device instead of memtier. Link: https://lkml.kernel.org/r/[email protected] Fixes: 9832fb8 ("mm/demotion: expose memory tier details via sysfs") Signed-off-by: Tong Tiangen <[email protected]> Cc: Aneesh Kumar K.V <[email protected]> Cc: Hanjun Guo <[email protected]> Cc: Kefeng Wang <[email protected]> Cc: Guohanjun <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
- Loading branch information