diff --git a/sys/dev/raid/hpt27xx/hpt27xx_osm_bsd.c b/sys/dev/raid/hpt27xx/hpt27xx_osm_bsd.c --- a/sys/dev/raid/hpt27xx/hpt27xx_osm_bsd.c +++ b/sys/dev/raid/hpt27xx/hpt27xx_osm_bsd.c @@ -1287,7 +1287,7 @@ } if (ioctl_args.nOutBufferSize) { - ioctl_args.lpOutBuffer = kmalloc(ioctl_args.nOutBufferSize, M_DEVBUF, M_WAITOK); + ioctl_args.lpOutBuffer = kmalloc(ioctl_args.nOutBufferSize, M_DEVBUF, M_WAITOK | M_ZERO); if (!ioctl_args.lpOutBuffer) goto invalid; }