spi: dynamycally allocated message initialization

Invoke the proper function while initializing
a dynamically allocated spi_message to avoid
NULL pointer dereference during resources deallocation.

Signed-off-by: Emiliano Ingrassia <ingrassia@epigenesys.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Emiliano Ingrassia 2017-03-28 09:49:29 +02:00 • committed by Mark Brown
commit ed77d6bcaf