OSDN Git Service

spi: rockchip: initialize dma_slave_config properly
authorHuibin Hong <huibin.hong@rock-chips.com>
Wed, 10 Oct 2018 09:00:32 +0000 (11:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Nov 2019 13:44:38 +0000 (14:44 +0100)
commit8f6058e031321f6898708f8e0c790d924e2054d3
treeb547b15c66fe94384f760dd7147dab91d62c53c4
parent6a267d5deca0a5cefd5791aaf1a685043fb525b3
spi: rockchip: initialize dma_slave_config properly

[ Upstream commit dd8fd2cbc73f8650f651da71fc61a6e4f30c1566 ]

The rxconf and txconf structs are allocated on the
stack, so make sure we zero them before filling out
the relevant fields.

Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-rockchip.c