aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/page_owner.py
diff options
context:
space:
mode:
authorJorge Sanjuan Garcia <[email protected]>2023-09-06 11:49:26 +0000
committerGreg Kroah-Hartman <[email protected]>2023-10-05 09:50:14 +0200
commit0f28ada1fbf0054557cddcdb93ad17f767105208 (patch)
tree4c92500bb3e96f179f8141295ad49ff0953fc012 /scripts/gdb/linux/page_owner.py
parentfc5bf78b1ae0e30b91c3102b207866c8b9981099 (diff)
mcb: remove is_added flag from mcb_device struct
When calling mcb_bus_add_devices(), both mcb devices and the mcb bus will attempt to attach a device to a driver because they share the same bus_type. This causes an issue when trying to cast the container of the device to mcb_device struct using to_mcb_device(), leading to a wrong cast when the mcb_bus is added. A crash occurs when freing the ida resources as the bus numbering of mcb_bus gets confused with the is_added flag on the mcb_device struct. The only reason for this cast was to keep an is_added flag on the mcb_device struct that does not seem necessary. The function device_attach() handles already bound devices and the mcb subsystem does nothing special with this is_added flag so remove it completely. Fixes: 18d288198099 ("mcb: Correctly initialize the bus's device") Cc: stable <[email protected]> Signed-off-by: Jorge Sanjuan Garcia <[email protected]> Co-developed-by: Jose Javier Rodriguez Barbarin <[email protected]> Signed-off-by: Jose Javier Rodriguez Barbarin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/page_owner.py')
0 files changed, 0 insertions, 0 deletions