DF-1580 / fix.diff
diff --git a/sys/dev/raid/hptrr/hptrr_osm_bsd.c b/sys/dev/raid/hptrr/hptrr_osm_bsd.c --- a/sys/dev/raid/hptrr/hptrr_osm_bsd.c +++ b/sys/dev/raid/hptrr/hptrr_osm_bsd.c @@ -1263,7 +1263,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; } |