linux/drivers/firewire
Stefan Richter b171e204b3 firewire: core: fix race with parallel PCI device probe
The config ROM buffer received from generate_config_rom is a globally
shared static buffer.  Extend the card_mutex protection in fw_add_card
until after the config ROM was copied into the card driver's buffer.
Otherwise, parallelized card driver probes may end up with ROM contents
that were meant for a different card.

firewire-ohci's card->driver->enable hook is safe to be called within
the card_mutex.  Furthermore, it is safe to reorder card_list update
versus card enable, which simplifies the code a little.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
2009-09-12 14:48:40 +02:00
..
core-card.c firewire: core: fix race with parallel PCI device probe 2009-09-12 14:48:40 +02:00
core-cdev.c
core-device.c
core-iso.c
core-topology.c
core-transaction.c
core.h firewire: core: header file cleanup 2009-09-12 14:48:40 +02:00
Kconfig
Makefile
net.c
ohci.c
ohci.h
sbp2.c