]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
spi: dynamycally allocated message initialization
authorEmiliano Ingrassia <ingrassia@epigenesys.com>
Tue, 28 Mar 2017 07:49:29 +0000 (09:49 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 29 Mar 2017 10:40:39 +0000 (11:40 +0100)
commited77d6bcafd75d247cf3c6ad685aa221cda1b8ba
tree7a17ec9b2a5295720cb2e563d6d43305596ce845
parentfafd67940774733fa97f4b09412aea6981b82e0a
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>
include/linux/spi/spi.h