Commit 0ed56252 authored by Mark Brown's avatar Mark Brown

spi: Fix Raspberry Pi breakage

This reverts commit c9ba7a16 (Release spi_res after finalizing
message) which causes races during cleanup.
Reported-by: default avatarNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d61ad23c
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment