diff --git a/module/os/linux/zfs/zpl_file.c b/module/os/linux/zfs/zpl_file.c index c8731563f6..653fdaf542 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);