diff options
author | Martin Sperl <kernel@martin.sperl.org> | 2015-05-10 07:50:45 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-03 09:29:51 -0700 |
commit | b36a9870ef91864268f016c2cf95e85cd5c60144 (patch) | |
tree | 999404a8093f94acd517216de5703dfec45ae4a7 /Documentation | |
parent | 073db8d52c821214ff5bfff429ddf166e2bca94f (diff) | |
download | lwn-b36a9870ef91864268f016c2cf95e85cd5c60144.tar.gz lwn-b36a9870ef91864268f016c2cf95e85cd5c60144.zip |
spi: fix race freeing dummy_tx/rx before it is unmapped
commit 8e76ef88f607174082023f50b87fe12dcdbe5db5 upstream.
Fix a race (with some kernel configurations) where a queued
master->pump_messages runs and frees dummy_tx/rx before
spi_unmap_msg is running (or is finished).
This results in the following messages:
BUG: Bad page state in process
page:db7ba030 count:0 mapcount:0 mapping: (null) index:0x0
flags: 0x200(arch_1)
page dumped because: PAGE_FLAGS_CHECK_AT_PREP flag set
...
Reported-by: Noralf Trønnes <noralf@tronnes.org>
Suggested-by: Noralf Trønnes <noralf@tronnes.org>
Tested-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions