malloc to calloc

This commit is contained in:
Jasmine Iwanek
2025-01-07 00:42:06 -05:00
parent f599e72114
commit 4e6f29a7d5
183 changed files with 245 additions and 493 deletions

View File

@@ -1162,8 +1162,7 @@ spock_mca_reset(void *priv)
static void *
spock_init(const device_t *info)
{
spock_t *scsi = malloc(sizeof(spock_t));
memset(scsi, 0x00, sizeof(spock_t));
spock_t *scsi = calloc(1, sizeof(spock_t));
scsi->bus = scsi_get_bus();