]> git.baikalelectronics.ru Git - kernel.git/commit
spi: bugfix: spi_message.transfer_length does not get reset
authorMartin Sperl <kernel@martin.sperl.org>
Fri, 27 Nov 2015 12:31:09 +0000 (12:31 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 27 Nov 2015 12:55:22 +0000 (12:55 +0000)
commit0a4bcf2e0966b01fb9a6727989aa674c855cec39
tree51c78e2bba952160606fb755de2b70b81aad23bf
parent2715d332e6151136472842d51b2ec873c0652275
spi: bugfix: spi_message.transfer_length does not get reset

When submitting an identical spi_message multiple times via spi_sync
the spi_message.frame_length does not get reset to 0 in __spi_validate
before adding up all spi_transfer.len resulting in
frame_length > actual_length on all but the first spi_sync call.

Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c