]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: spi-dw-dma: fix print error log when wait finish transaction
authorVladimir Yakovlev <vovchkir@gmail.com>
Mon, 2 Mar 2026 22:20:17 +0000 (01:20 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 2 Mar 2026 22:33:32 +0000 (22:33 +0000)
commit3b46d61890632c8f8b117147b6923bff4b42ccb7
tree6c07d73cd458ec02c9798aa52447da8b1945fcf1
parent11439c4635edd669ae435eec308f4ab8a0804808
spi: spi-dw-dma: fix print error log when wait finish transaction

If an error occurs, the device may not have a current message. In this
case, the system will crash.

In this case, it's better to use dev from the struct ctlr (struct spi_controller*).

Signed-off-by: Vladimir Yakovlev <vovchkir@gmail.com>
Link: https://patch.msgid.link/20260302222017.992228-2-vovchkir@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw-dma.c