linux/drivers/staging
Vaibhav Agarwal 1dffeb8b8b staging: greybus: audio: fix uninitialized value issue
The current implementation for gbcodec_mixer_dapm_ctl_put() uses
uninitialized gbvalue for comparison with updated value. This was found
using static analysis with coverity.

Uninitialized scalar variable (UNINIT)
11. uninit_use: Using uninitialized value
gbvalue.value.integer_value[0].
460        if (gbvalue.value.integer_value[0] != val) {

This patch fixes the issue with fetching the gbvalue before using it for
    comparision.

Fixes: 6339d2322c ("greybus: audio: Add topology parser for GB codec")
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Vaibhav Agarwal <vaibhav.sr@gmail.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/bc4f29eb502ccf93cd2ffd98db0e319fa7d0f247.1597408126.git.vaibhav.sr@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-08-18 16:12:54 +02:00
..
android Staging/IIO driver patches for 5.9-rc1 2020-08-06 14:36:13 -07:00
axis-fifo
board
clocking-wizard staging: Replace HTTP links with HTTPS ones 2020-07-20 10:22:47 +02:00
comedi staging: comedi: s526: Use fallthrough pseudo-keyword 2020-07-28 10:18:52 +02:00
emxx_udc
fbtft staging: fbtft: fb_st7789v: make HSD20_IPS numeric and not a string 2020-05-22 10:48:32 +02:00
fieldbus
fsl-dpaa2 staging: dpaa2-ethsw: check if there is space for a new VLAN 2020-07-21 16:53:34 +02:00
fwserial
gasket staging: gasket: core: Fix a coding style issue in gasket_core.c 2020-07-15 16:05:14 +02:00
gdm724x staging: gdm724x: Use fallthrough pseudo-keyword 2020-07-28 10:18:52 +02:00
goldfish
greybus staging: greybus: audio: fix uninitialized value issue 2020-08-18 16:12:54 +02:00
gs_fpgaboot staging: Replace HTTP links with HTTPS ones 2020-07-20 10:22:47 +02:00
iio iio: remove left-over parent assignments 2020-06-14 11:50:04 +01:00
kpc2000 staging: kpc2000: kpc_dma: Remove additional goto statements 2020-07-01 15:44:26 +02:00
ks7010 mm, treewide: rename kzfree() to kfree_sensitive() 2020-08-07 11:33:22 -07:00
media media updates for v5.9-rc1 2020-08-07 13:00:53 -07:00
most Staging/IIO driver patches for 5.9-rc1 2020-08-06 14:36:13 -07:00
mt7621-dma
mt7621-dts
mt7621-pci
mt7621-pci-phy
mt7621-pinctrl
netlogic staging: netlogic: clear alignment style issues 2020-08-02 12:47:37 +02:00
nvec Staging: nvec: Replace HTTP links with HTTPS ones 2020-07-10 13:52:46 +02:00
octeon Staging/IIO driver patches for 5.9-rc1 2020-08-06 14:36:13 -07:00
octeon-usb
olpc_dcon
pi433
qlge pci-v5.9-changes 2020-08-07 18:48:15 -07:00
ralink-gdma
rtl8188eu staging: r8188eu: replace rtw_netdev_priv define with inline function 2020-08-02 12:47:37 +02:00
rtl8192e staging: rtl8192e: Use fallthrough pseudo-keyword 2020-07-28 10:18:51 +02:00
rtl8192u staging: rtl8192u: fix a dubious looking mask before a shift 2020-07-17 12:08:44 +02:00
rtl8712 Staging: rtl8712: Fixed a coding sytle issue 2020-07-29 14:00:25 +02:00
rtl8723bs mm, treewide: rename kzfree() to kfree_sensitive() 2020-08-07 11:33:22 -07:00
rts5208 staging: rts5208: clear alignment style issues 2020-08-02 12:47:37 +02:00
sm750fb staging: sm750fb: use generic power management 2020-07-29 14:01:37 +02:00
unisys staging: unisys: visorhba: remove redundant initialization of variables scsicmd_id and rc 2020-07-23 20:34:34 +02:00
vc04_services staging: vc04_services: Use fallthrough pseudo-keyword 2020-07-28 10:18:52 +02:00
vme
vt6655 staging: vt6655: Use fallthrough pseudo-keyword 2020-07-10 13:52:46 +02:00
vt6656 staging: vt6655: Use fallthrough pseudo-keyword 2020-07-10 13:52:46 +02:00
wfx staging: wfx: Use flex_array_size() helper in memcpy() 2020-07-30 08:41:06 +02:00
wlan-ng staging: wlan-ng: fix out of bounds read in prism2sta_probe_usb() 2020-08-18 16:12:54 +02:00
Kconfig staging/speakup: Move out of staging 2020-07-29 14:02:41 +02:00
Makefile staging/speakup: Move out of staging 2020-07-29 14:02:41 +02:00