diff --git a/sys/dev/nand/nand_cdev.c b/sys/dev/nand/nand_cdev.c index bcfe3ea36125..b01194601ada 100644 --- a/sys/dev/nand/nand_cdev.c +++ b/sys/dev/nand/nand_cdev.c @@ -298,7 +298,8 @@ nand_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, struct nand_oob_rw *oob_rw = NULL; struct nand_raw_rw *raw_rw = NULL; device_t nandbus; - size_t bufsize, len, raw_size; + size_t bufsize = 0, len = 0; + size_t raw_size; off_t off; uint8_t *buf = NULL; int ret = 0; diff --git a/sys/dev/nand/nand_geom.c b/sys/dev/nand/nand_geom.c index f17ee60959bb..8786a0a84776 100644 --- a/sys/dev/nand/nand_geom.c +++ b/sys/dev/nand/nand_geom.c @@ -197,7 +197,8 @@ nand_ioctl(struct disk *ndisk, u_long cmd, void *data, int fflag, struct nand_oob_rw *oob_rw = NULL; struct nand_raw_rw *raw_rw = NULL; device_t nandbus; - size_t bufsize, len, raw_size; + size_t bufsize = 0, len = 0; + size_t raw_size; off_t off; uint8_t *buf = NULL; int ret = 0;