diff --git a/zipl/src/disk.c b/zipl/src/disk.c index 7d4fe853..2b320511 100644 --- a/zipl/src/disk.c +++ b/zipl/src/disk.c @@ -663,7 +663,7 @@ static int disk_set_info_complete(struct job_target_data *td, * To exclude any user assumptions about the DEVICE, this function * should be called with TD pointing to a zeroed structure. * - * DEVICE: logical, or physical device, optionally formated with a + * DEVICE: logical, or physical device, optionally formatted with a * file system. */ int disk_get_info(const char *device, struct job_target_data *td, @@ -1061,6 +1061,7 @@ disk_write_block_buffer_align(struct misc_fd *mfd, int fd_is_basedisk, const voi count = (bytecount + info->phy_block_size - 1) / info->phy_block_size; *blocklist = (disk_blockptr_t *)util_zalloc(sizeof(disk_blockptr_t) * count); + if (*blocklist == NULL) { close(mfd->fd); return 0; diff --git a/zipl/src/install.c b/zipl/src/install.c index 137793af..0d0e3c89 100644 --- a/zipl/src/install.c +++ b/zipl/src/install.c @@ -291,7 +291,7 @@ static int install_eckd_cdl_ld(int fd, disk_blockptr_t *br, return -1; rc = DRY_RUN_FUNC(misc_write(fd, &vl, sizeof(vl))); if (rc) - error_text("Could not update volume lablel 'vol1'"); + error_text("Could not update volume label 'vol1'"); return 0; } diff --git a/zipl/src/misc.c b/zipl/src/misc.c index f0a83dec..512a9f5b 100644 --- a/zipl/src/misc.c +++ b/zipl/src/misc.c @@ -444,7 +444,7 @@ misc_write(int fd, const void* data, size_t count) } /** - * Instead of writing, upadte only current position in the file + * Instead of writing, update only current position in the file */ static int misc_simulate_write(int fd, size_t count) {