+2
−2
Loading
Check devm_ioremap() return value for NULL instead of ERR_PTR and return -ENOMEM on failure. devm_ioremap() never returns ERR_PTR, using IS_ERR() skips the error path and may cause a NULL pointer dereference. Fixes: 5394396f ("perf/arm-cmn: Stop claiming entire iomem region") Signed-off-by:Chen Ni <nichen@iscas.ac.cn> Signed-off-by:
Will Deacon <will@kernel.org>