mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 17:54:13 +08:00
96b19062e7
There is a race between shutdown and creation of devices: fw-core may attempt to add a device with the same name of an already existing device. http://bugzilla.kernel.org/show_bug.cgi?id=9828 Impact of the bug: Happens rarely (when shutdown of a device coincides with creation of another), forces the user to unplug and replug the new device to get it working. The fix is obvious: Free the minor number *after* instead of *before* device_unregister(). This requires to take an additional reference of the fw_device as long as the IDR tree points to it. And while we are at it, we fix an additional race condition: fw_device_op_open() took its reference of the fw_device a little bit too late, hence was in danger to access an already invalid fw_device. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> |
||
---|---|---|
.. | ||
fw-card.c | ||
fw-cdev.c | ||
fw-device.c | ||
fw-device.h | ||
fw-iso.c | ||
fw-ohci.c | ||
fw-ohci.h | ||
fw-sbp2.c | ||
fw-topology.c | ||
fw-topology.h | ||
fw-transaction.c | ||
fw-transaction.h | ||
Kconfig | ||
Makefile |