diff options
author | Tom Rini <trini@konsulko.com> | 2023-11-10 08:44:18 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-11-10 11:01:51 -0500 |
commit | bb7121f6aa644b72115a24f63d3ee6e52629cc99 (patch) | |
tree | b5b6657bbb1ef0660a92f3d8e85c115b7713a12b /drivers/scsi | |
parent | eda45ee3cbb2ed15aee79009638b3719fe5cbc1a (diff) | |
parent | a3a884c697c3e016ff5625c56509a3d725a01bdb (diff) |
Merge branch '2023-11-10-assorted-fixes'
- Fix some issues Coverity has reported, update MAINTAINERS file,
another bootstd fix, typo fix in error message, gitignore fix and
update TI's URL in many places.
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/scsi.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index 779a34bd2f..b76aadb065 100644 --- a/drivers/scsi/scsi.c +++ b/drivers/scsi/scsi.c @@ -450,15 +450,12 @@ static void scsi_setup_test_unit_ready(struct scsi_cmd *pccb) */ static void scsi_init_dev_desc_priv(struct blk_desc *dev_desc) { + memset(dev_desc, 0, sizeof(struct blk_desc)); dev_desc->target = 0xff; dev_desc->lun = 0xff; dev_desc->log2blksz = LOG2_INVALID(typeof(dev_desc->log2blksz)); dev_desc->type = DEV_TYPE_UNKNOWN; - dev_desc->vendor[0] = 0; - dev_desc->product[0] = 0; - dev_desc->revision[0] = 0; - dev_desc->removable = false; #if IS_ENABLED(CONFIG_BOUNCE_BUFFER) dev_desc->bb = true; #endif /* CONFIG_BOUNCE_BUFFER */ |