diff options
| author | Hongren Zheng <[email protected]> | 2023-10-14 15:46:04 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-10-16 19:58:49 +0200 |
| commit | 17d6b82d2d6d467149874b883cdba844844b996d (patch) | |
| tree | 12531643a77e285056f0032f99cd54df8db9a603 /tools/perf/scripts/python | |
| parent | d0d27ef87e1ca974ed93ed4f7d3c123cbd392ba6 (diff) | |
usb/usbip: fix wrong data added to platform device
.data of platform_device_info will be copied into .platform_data of
struct device via platform_device_add_data.
However, vhcis[i] contains a spinlock, is dynamically allocated and
used by other code, so it is not meant to be copied. The workaround
was to use void *vhci as an agent, but it was removed in the commit
suggested below.
This patch adds back the workaround and changes the way of using
platform_data accordingly.
Reported-by: [email protected]
Closes: https://lore.kernel.org/r/[email protected]/
Reported-by: [email protected]
Closes: https://lore.kernel.org/r/[email protected]/
Fixes: b8aaf639b403 ("usbip: Use platform_device_register_full()")
Tested-by: [email protected]
Link: https://lore.kernel.org/r/[email protected]/
Signed-off-by: Hongren Zheng <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Acked-by: Shuah Khan <[email protected]>
Link: https://lore.kernel.org/r/ZSpHPCaQ5DDA9Ysl@Sun
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions