aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorSun Ke <[email protected]>2022-09-24 11:21:27 +0800
committerCatalin Marinas <[email protected]>2022-10-07 14:47:38 +0100
commitad0112f2d54cafee839e2ee99ec0b5fb9ce5c4b8 (patch)
tree47f9961a64aa6b83b55d59c7db7408f393c6a3aa /lib/test_fortify/write_overflow-strncpy-src.c
parent171df58028bf4649460fb146a56a58dcb0c8f75a (diff)
drivers/perf: fix return value check in ali_drw_pmu_probe()
In case of error, devm_ioremap_resource() returns ERR_PTR(), and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Fixes: cf7b61073e45 ("drivers/perf: add DDR Sub-System Driveway PMU driver for Yitian 710 SoC") Signed-off-by: Sun Ke <[email protected]> Acked-by: Will Deacon <[email protected]> Reviewed-by: Shuai Xue <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions