summary refs log tree commit diff
path: root/crypto/sm3_generic.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-12-18 15:19:47 +0000
committerDavid S. Miller <davem@davemloft.net>2018-12-18 22:00:40 -0800
commitf7db2beb4c2c6cc8111f5ab90fc7363ca91107b6 (patch)
treedf1a5353f56e2473fee03344fa10499a8b218dad /crypto/sm3_generic.c
parentd81c5054a5d1d4999c7cdead7636b6cd4af83d36 (diff)
downloadlinux-f7db2beb4c2c6cc8111f5ab90fc7363ca91107b6.tar.gz
vxge: ensure data0 is initialized in when fetching firmware version information
Currently variable data0 is not being initialized so a garbage value is
being passed to vxge_hw_vpath_fw_api and this value is being written to
the rts_access_steer_data0 register.  There are other occurrances where
data0 is being initialized to zero (e.g. in function
vxge_hw_upgrade_read_version) so I think it makes sense to ensure data0
is initialized likewise to 0.

Detected by CoverityScan, CID#140696 ("Uninitialized scalar variable")

Fixes: 8424e00dfd52 ("vxge: serialize access to steering control register")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'crypto/sm3_generic.c')
0 files changed, 0 insertions, 0 deletions