diff options
author | Tom Rini | 2023-11-08 14:28:11 -0500 |
---|---|---|
committer | Tom Rini | 2023-11-10 10:59:24 -0500 |
commit | d2174dbff1b492c682cc93903bc7456c2784e719 (patch) | |
tree | af9c3de388a3f5c426b436a6f014da967564dcb9 /.gitattributes | |
parent | 5069436419b146a8b23f08ca757989bb3fd431a3 (diff) |
scsi: Have scsi_init_dev_desc_priv() use memset
When we do not have CONFIG_BOUNCE_BUFFER enabled, inside of
scsi_init_dev_desc_priv we never set the 'bb' field to false, we only
initialize it to true when CONFIG_BOUNCE_BUFFER is set. Given that we
have a number of other fields here we had been explicitly setting to
zero, change to first calling memset to clear the struct and then
initialize only the fields that need non-zero default values.
Addresses-Coverity-ID: 467407 ("Uninitialized variables (UNINIT)")
Fixes: 81bd22e935dc ("rockchip: block: blk-uclass: add bounce buffer flag to blk_desc")
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions