diff --git a/module/os/linux/zfs/zpl_file.c b/module/os/linux/zfs/zpl_file.c index 6e1b182eb6..705bd22f5d 100644 --- a/module/os/linux/zfs/zpl_file.c +++ b/module/os/linux/zfs/zpl_file.c @@ -318,7 +318,7 @@ zpl_iter_write(struct kiocb *kiocb, struct iov_iter *from) struct file *filp = kiocb->ki_filp; struct inode *ip = filp->f_mapping->host; uio_t uio; - size_t count; + size_t count = 0; ssize_t ret; ret = zpl_generic_write_checks(kiocb, from, &count);