diff options
author | Miaoqian Lin <linmq006@gmail.com> | 2022-11-10 06:07:51 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-12-01 02:58:54 +0300 |
commit | 4a625ceee8a0ab0273534cb6b432ce6b331db5ee (patch) | |
tree | 6e8fc35a9ddd5d0ba17732374ef5f3ad143e379c /arch/riscv/boot/dts/starfive | |
parent | eaec4e639f11413ce75fbf38affd1aa5c40979e9 (diff) | |
download | linux-4a625ceee8a0ab0273534cb6b432ce6b331db5ee.tar.xz |
mm/demotion: fix NULL vs IS_ERR checking in memory_tier_init
alloc_memory_type() returns error pointers on error instead of NULL. Use
IS_ERR() to check the return value to fix this.
Link: https://lkml.kernel.org/r/20221110030751.1627266-1-linmq006@gmail.com
Fixes: 7b88bda3761b ("mm/demotion/dax/kmem: set node's abstract distance to MEMTIER_DEFAULT_DAX_ADISTANCE")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: "Huang, Ying" <ying.huang@intel.com>
Cc: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Cc: Wei Xu <weixugc@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch/riscv/boot/dts/starfive')
0 files changed, 0 insertions, 0 deletions