fw_busreset() allocates newrom with M_NOWAIT from interrupt context.
If the allocation fails, crom_load() dereferences a NULL pointer.
Skip the config ROM comparison on allocation failure so the next bus
reset will retry.
Differential D57728
firewire: NULL check on malloc in fw_busreset() Authored by guest-seuros on Sun, Jun 21, 8:21 PM. Tags Referenced Files
Subscribers
Details
fw_busreset() allocates newrom with M_NOWAIT from interrupt context. Skip the config ROM comparison on allocation failure so the next bus Hard to reproduce reliably. Triggered by wiggling the cable on a
Diff Detail
|