NeilBrown <neilb@xxxxxxx> wrote: > > - conf = kmalloc (sizeof (*conf) + mddev->raid_disks*sizeof(dev_info_t), > + conf = kzalloc (sizeof (*conf) + mddev->raid_disks*sizeof(dev_info_t), > - new = (mddev_t *) kmalloc(sizeof(*new), GFP_KERNEL); > + new = (mddev_t *) kzalloc(sizeof(*new), GFP_KERNEL); > - rdev = (mdk_rdev_t *) kmalloc(sizeof(*rdev), GFP_KERNEL); > + rdev = (mdk_rdev_t *) kzalloc(sizeof(*rdev), GFP_KERNEL); It'd be nice to nuke the unneeded cast while we're there. <edits the diff> OK, I did that. - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html