[COMMON] spi: Add spi_finalize_current_message when prepapre_transfer_hardware
authorKyungwoo Kang <kwoo.kang@samsung.com>
Tue, 27 Mar 2018 05:50:37 +0000 (14:50 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Wed, 30 May 2018 04:44:50 +0000 (13:44 +0900)
commite8c751f5a0650820e2198f761139a06be2654eba
tree1594d37f3e5890a4f6613514ae0156251badae95
parent85dca3e6276d606d8e6f1bacafc05a8d8ed23649
[COMMON] spi: Add spi_finalize_current_message when prepapre_transfer_hardware
was failed

This patch adds spi_finalize_current_message to avoid mutex dead
lock situatoin.

Change-Id: I3d1e82522b08d795a743c5a6a5df517f9b54e21e
Signed-off-by: Kyungwoo Kang <kwoo.kang@samsung.com>
drivers/spi/spi.c