Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

spi-imx: initialize complete config struct

Otherwise the config function uses random data from the stack. This
didn't stick out because config is called once more in the chipselect
function with correct parameters.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Uwe Kleine-König and committed by
Linus Torvalds
d1c627b5 4388eb11

+1
+1
drivers/spi/spi_imx.c
··· 442 442 config.bpw = t ? t->bits_per_word : spi->bits_per_word; 443 443 config.speed_hz = t ? t->speed_hz : spi->max_speed_hz; 444 444 config.mode = spi->mode; 445 + config.cs = spi_imx->chipselect[spi->chip_select]; 445 446 446 447 if (!config.speed_hz) 447 448 config.speed_hz = spi->max_speed_hz;