]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
driver core: test_async: fix an error code
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 18 Jul 2023 07:03:49 +0000 (10:03 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Sep 2023 10:22:45 +0000 (12:22 +0200)
commit46b76f13f1ad4fae51f7f3b9d7316e8dd3478aa9
tree10e655e7741f5671fb338e4ff581a6a7c05b9694
parenta6992ecefe5ddc46240318e68fb521c223927858
driver core: test_async: fix an error code

[ Upstream commit 22d2381bbd70a5853c2ee77522f4965139672db9 ]

The test_platform_device_register_node() function should return error
pointers instead of NULL.  That is what the callers are expecting.

Fixes: 57ea974fb871 ("driver core: Rewrite test_async_driver_probe to cover serialization and NUMA affinity")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/1e11ed19-e1f6-43d8-b352-474134b7c008@moroto.mountain
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/base/test/test_async_driver_probe.c