patch "staging: wilc1000: fix missing read_write setting when reading data" added to staging-next
Subsystems (2)
This is a note to let you know that I've just added the patch titled
staging: wilc1000: fix missing read_write setting when reading data
to my staging git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
in the staging-next branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will also be merged in the next major kernel release during the merge window.
If you have any questions about this process, please let me know.
Quoted 1 line
From
c58eef061dda7d843dcc0ad6fea7e597d4c377c0Mon Sep 17 00:00:00 2001
From: Colin Ian King <[email protected]>
Date: Wed, 19 Dec 2018 16:30:07 +0000
Subject: staging: wilc1000: fix missing read_write setting when reading data
Currently the cmd.read_write setting is not initialized so it contains garbage from the stack. Fix this by setting it to 0 to indicate a read is required.
Detected by CoverityScan, CID#1357925 ("Uninitialized scalar variable")
--- drivers/staging/wilc1000/wilc_sdio.c | 1 + 1 file changed, 1 insertion(+)
drivers/staging/wilc1000/wilc_sdio.c +1 -0
@@ -861,6 +861,7 @@ static int sdio_read_int(struct wilc *wilc, u32 *int_status)if (!sdio_priv->irq_gpio) {int i; + cmd.read_write =0 ; cmd.function =1 ; cmd.address =0x04 ; cmd.data =0 ;
Signature · 1 line
2.20.1