]> git.baikalelectronics.ru Git - kernel.git/commit
spi: Release spi_res after finalizing message
authorNoralf Trønnes <noralf@tronnes.org>
Sat, 13 Apr 2019 18:24:13 +0000 (20:24 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 2 May 2019 01:37:51 +0000 (10:37 +0900)
commitdca2dc85c510f4a4a696f314b4567ff84fea0ece
tree2312ac0a1a8265a6d53a1e7716f4cad98f3bc784
parent0666b6fd05bb06a0f38561ced63c85d4edb932db
spi: Release spi_res after finalizing message

spi_split_transfers_maxsize() can be used to split a transfer. This
function uses spi_res to lifetime manage the added transfer structures.
So in order to finalize the current message while it contains the split
transfers, spi_res_release() must be called after finalizing.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c