]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
spi: bcm2835: remove use of uninitialized gpio flags variable
authorMartin Hundebøll <martin@geanix.com>
Thu, 5 Nov 2020 09:06:15 +0000 (10:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Nov 2020 18:22:15 +0000 (19:22 +0100)
commit8e3f68daf1dd9d23ee597608b7334a7b00e54dbc
treea0564b83df96fbeca3ee7a5cb9a1b82de6c8e8e8
parent3d916fae61458da323f670e40e5377bba4d2162f
spi: bcm2835: remove use of uninitialized gpio flags variable

commit bc7f2cd7559c5595dc38b909ae9a8d43e0215994 upstream.

Removing the duplicate gpio chip select level handling in
bcm2835_spi_setup() left the lflags variable uninitialized. Avoid trhe
use of such variable by passing default flags to
gpiochip_request_own_desc().

Fixes: 5e31ba0c0543 ("spi: bcm2835: fix gpio cs level inversion")
Signed-off-by: Martin Hundebøll <martin@geanix.com>
Link: https://lore.kernel.org/r/20201105090615.620315-1-martin@geanix.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spi/spi-bcm2835.c