Commit 0cc3ad8f4d2e for kernel

commit 0cc3ad8f4d2e2009c2005278c754caf7c07fe0a4
Merge: 7313d94c67da 187a62f99da2
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date:   Mon Oct 26 07:04:41 2026 -1000

    Merge tag 'driver-core-7.4-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/driver-core/driver-core

    Pull driver core fixes from Danilo Krummrich:

     - Make parent-lock requirements per device type instead of per bus,
       fixing a use-after-free on USB disconnect by limiting the requirement
       to USB interfaces, which retain a reference to their parent

     - Honor parent-lock requirements during deferred and asynchronous
       probing, fixing USB interface probe races, including duplicate
       endpoint creation attempts in sysfs

    * tag 'driver-core-7.4-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/driver-core/driver-core:
      driver core: take parent lock in async device attach
      driver core: take parent lock on deferred probe
      driver core: fix parent lock use-after-free on USB disconnect

diff --cc include/linux/device/bus.h
index 89e156b9acb5,526407a371e2..9ef7538a9a7f
--- a/include/linux/device/bus.h
+++ b/include/linux/device/bus.h
@@@ -110,10 -108,8 +108,9 @@@ struct bus_type
  	const struct dev_pm_ops *pm;

  	bool driver_override;
- 	bool need_parent_lock;
  };

 +int __must_check companion_bus_register(const struct bus_type *bus);
  int __must_check bus_register(const struct bus_type *bus);

  void bus_unregister(const struct bus_type *bus);