]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
coresight: tnoc: Fix a NULL vs IS_ERR() bug in probe
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 16 Jul 2025 19:38:30 +0000 (14:38 -0500)
committerSuzuki K Poulose <suzuki.poulose@arm.com>
Tue, 23 Sep 2025 13:13:27 +0000 (14:13 +0100)
commit7fdd04e15ad79cc2294b9e722d6282357da0b53a
tree1d0ba28c32ca9c998d854f0dacb38cc60687da48
parente54a52a28a362cb3a88d7996558f547666ee79e7
coresight: tnoc: Fix a NULL vs IS_ERR() bug in probe

The devm_ioremap_resource() function returns error pointers on error.
It never returns NULL.  Update the error checking to match.

Fixes: e54a52a28a36 ("coresight: add coresight Trace Network On Chip driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Mike Leach <mike.leach@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/7bd9fae8-a15f-412a-8800-ce47acf0b5ce@sabinyo.mountain
drivers/hwtracing/coresight/coresight-tnoc.c