0faac26dde
The spi master cur_transfer and cur_msg should only be changed under the spin_lock for the master. The result is that if running user space tools, like fxstest, that check registers on the modules, it's possible to have a message that was not yet complete flagged as completed which would result in a bad read. This does not affect "normal" operation of the wcaxx driver since interrupts are not enabled during module detection, and during normal operation all access to the resgisters is done in the context of the interrupt handler. This would only be an issue if the interrupt handler was running and register accesses are tried in user space context on an SMP system. Signed-off-by: Shaun Ruffell <sruffell@digium.com> |
||
---|---|---|
.. | ||
dahdi |