u-boot/drivers/scsi
Tom Rini d2174dbff1 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: 81bd22e935 ("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>
2023-11-10 10:59:24 -05:00
..
Kconfig scsi: typo supporedt 2023-04-01 10:11:50 +02:00
Makefile bootstd: Add a SCSI bootdev 2023-01-23 18:11:40 -05:00
sandbox_scsi.c sandbox: Convert to use driver model for SCSI 2022-09-25 13:59:50 -06:00
scsi-uclass.c dm: define LOG_CATEGORY for all uclass 2021-07-06 10:38:03 -06:00
scsi.c scsi: Have scsi_init_dev_desc_priv() use memset 2023-11-10 10:59:24 -05:00
scsi_bootdev.c bootstd: Use bootdev instead of bootdevice 2023-07-16 23:13:17 +08:00
scsi_emul.c usb: Update the test to cover reading and writing 2022-10-31 11:02:44 -04:00