Skip to content

Commit 0ed5625

Browse files
committed
spi: Fix Raspberry Pi breakage
This reverts commit c9ba7a1 (Release spi_res after finalizing message) which causes races during cleanup. Reported-by: Nicolas Saenz Julienne <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent d61ad23 commit 0ed5625

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/spi/spi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,10 +1181,10 @@ static int spi_transfer_one_message(struct spi_controller *ctlr,
11811181
if (msg->status && ctlr->handle_err)
11821182
ctlr->handle_err(ctlr, msg);
11831183

1184-
spi_finalize_current_message(ctlr);
1185-
11861184
spi_res_release(ctlr, msg);
11871185

1186+
spi_finalize_current_message(ctlr);
1187+
11881188
return ret;
11891189
}
11901190

0 commit comments

Comments
 (0)