diff options
author | Chen Zhongjin <chenzhongjin@huawei.com> | 2022-11-25 09:35:41 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-19 19:27:36 +0300 |
commit | 9be182da0a7526f1b9a3777a336f83baa2e64d23 (patch) | |
tree | 3c430c1ffaaa0ac6475d8b1ab4297a80ad6f52df /drivers/base/platform.c | |
parent | 39af728649b05e88a2b40e714feeee6451c3f18e (diff) | |
download | linux-9be182da0a7526f1b9a3777a336f83baa2e64d23.tar.xz |
driver core: Fix test_async_probe_init saves device in wrong array
In test_async_probe_init, second set of asynchronous devices are saved
in sync_dev[sync_id], which should be async_dev[async_id].
This makes these devices not unregistered when exit.
> modprobe test_async_driver_probe && \
> modprobe -r test_async_driver_probe && \
> modprobe test_async_driver_probe
...
> sysfs: cannot create duplicate filename '/devices/platform/test_async_driver.4'
> kobject_add_internal failed for test_async_driver.4 with -EEXIST,
don't try to register things with the same name in the same directory.
Fixes: 57ea974fb871 ("driver core: Rewrite test_async_driver_probe to cover serialization and NUMA affinity")
Signed-off-by: Chen Zhongjin <chenzhongjin@huawei.com>
Link: https://lore.kernel.org/r/20221125063541.241328-1-chenzhongjin@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/platform.c')
0 files changed, 0 insertions, 0 deletions