diff options
| author | Sami Tolvanen <[email protected]> | 2019-11-12 21:41:56 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-11-14 03:30:56 +0000 |
| commit | 492c88720d36eb662f9f10c1633f7726fbb07fc4 (patch) | |
| tree | 9fea500a88e461c48bfde7adf62de86ef8afdb4c /net/unix/af_unix.c | |
| parent | firmware_class: make firmware caching configurable (diff) | |
| download | kernel-492c88720d36eb662f9f10c1633f7726fbb07fc4.tar.gz kernel-492c88720d36eb662f9f10c1633f7726fbb07fc4.zip | |
driver core: platform: use the correct callback type for bus_find_device
platform_find_device_by_driver calls bus_find_device and passes
platform_match as the callback function. Casting the function to a
mismatching type trips indirect call Control-Flow Integrity (CFI) checking.
This change adds a callback function with the correct type and instead
of casting the function, explicitly casts the second parameter to struct
device_driver* as expected by platform_match.
Fixes: 36f3313d6bff9 ("platform: Add platform_find_device_by_driver() helper")
Signed-off-by: Sami Tolvanen <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Cc: stable <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
