Skip to contentSkip to conversation

usb: yurex: fix race in probe

PATCH Shraddha Phadnis 1 participant 1 message Feb 13

Subsystems (2)
lore
Share & tools
lore

Shraddha Phadnis

author Reviewed-by
#0 lore raw

This makes sense. Initializing dev->bbu before submitting the interrupt URB closes the race where the completion handler could set bbu and then have it overwritten by the probe path.

Moving the initialization earlier ensures any early interrupt sees a known state rather than losing valid data.

Agree with CC stable as this fixes a real data corruption case.