aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorWei Yongjun <[email protected]>2022-11-18 06:38:38 +0000
committerGreg Kroah-Hartman <[email protected]>2022-11-22 18:21:58 +0100
commit58e92c4a496b27156020a59a98c7f4a92c2b1533 (patch)
treedf88d5bb40a2ea196676abaf8176bdb0025ec9a5 /lib/mpi/mpi-mod.c
parent9919d41809fb32bfdd5d7dc53345f83b89e33feb (diff)
nvmem: rmem: Fix return value check in rmem_read()
In case of error, the function memremap() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Fixes: 5a3fa75a4d9c ("nvmem: Add driver to expose reserved memory as nvmem") Cc: Srinivas Kandagatla <[email protected]> Cc: Nicolas Saenz Julienne <[email protected]> Signed-off-by: Wei Yongjun <[email protected]> Acked-by: Nicolas Saenz Julienne <[email protected]> Signed-off-by: Yang Yingliang <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions