]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMark Brown <broonie@kernel.org>
Thu, 11 Oct 2018 14:11:45 +0000 (15:11 +0100)
commit82f5eae019d747d50301822939de5216706d7491
treee97dcb2cf99818fe675d6ac0d7f1e22a32660a97
parent724b4e4faa70394b81df4220300f6cfd0c74e46d
spi: rockchip: initialize dma_slave_config properly

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>
drivers/spi/spi-rockchip.c