Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
spi: Fix Raspberry Pi breakage
Browse files Browse the repository at this point in the history
This reverts commit c9ba7a1 (Release spi_res after finalizing
message) which causes races during cleanup.

Reported-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
broonie committed May 9, 2019
1 parent d61ad23 commit 0ed5625
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/spi/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1181,10 +1181,10 @@ static int spi_transfer_one_message(struct spi_controller *ctlr,
if (msg->status && ctlr->handle_err)
ctlr->handle_err(ctlr, msg);

spi_finalize_current_message(ctlr);

spi_res_release(ctlr, msg);

spi_finalize_current_message(ctlr);

return ret;
}

Expand Down

0 comments on commit 0ed5625

Please sign in to comment.