aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorMiaoqian Lin <[email protected]>2022-11-10 07:07:51 +0400
committerAndrew Morton <[email protected]>2022-11-30 15:58:54 -0800
commit4a625ceee8a0ab0273534cb6b432ce6b331db5ee (patch)
tree6e8fc35a9ddd5d0ba17732374ef5f3ad143e379c /lib/mpi/mpi-mod.c
parenteaec4e639f11413ce75fbf38affd1aa5c40979e9 (diff)
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/[email protected] Fixes: 7b88bda3761b ("mm/demotion/dax/kmem: set node's abstract distance to MEMTIER_DEFAULT_DAX_ADISTANCE") Signed-off-by: Miaoqian Lin <[email protected]> Reviewed-by: "Huang, Ying" <[email protected]> Cc: Aneesh Kumar K.V <[email protected]> Cc: Wei Xu <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions