diff options
author | 2024-12-16 12:11:44 -0800 | |
---|---|---|
committer | 2024-12-24 09:48:09 +0100 | |
commit | 86a5f32ed8813d5534d3d6c77aad29184a9f99b6 (patch) | |
tree | f028ce734071475fd085107173be6f9f3c907e90 /rust/kernel/pci.rs | |
parent | drivers: base: test: Enable device model tests with KUNIT_ALL_TESTS (diff) | |
download | wireguard-linux-86a5f32ed8813d5534d3d6c77aad29184a9f99b6.tar.xz wireguard-linux-86a5f32ed8813d5534d3d6c77aad29184a9f99b6.zip |
drivers: base: test: Add ...find_device_by...(... NULL) tests
We recently updated these device_match*() (and therefore, various
*find_device_by*()) functions to return a consistent 'false' value when
trying to match a NULL handle. Add tests for this.
This provides regression-testing coverage for the sorts of bugs that
underly commit 5c8418cf4025 ("PCI/pwrctrl: Unregister platform device
only if one actually exists").
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Brian Norris <briannorris@chromium.org>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Reviewed-by: David Gow <davidgow@google.com>
Link: https://lore.kernel.org/r/20241216201148.535115-4-briannorris@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/kernel/pci.rs')
0 files changed, 0 insertions, 0 deletions