This isn't a real bug as the smallest slab-size is 32 bytes but please apply for consistency. Found by the Coverity tool. Signed-off-by: Alexander Nyberg <alexn@xxxxxxxxx> Signed-off-by: Neil Brown <neilb@xxxxxxxxxxxxxxx> ### Diffstat output ./drivers/md/raid1.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff ./drivers/md/raid1.c~current~ ./drivers/md/raid1.c --- ./drivers/md/raid1.c~current~ 2005-03-07 15:49:25.000000000 +1100 +++ ./drivers/md/raid1.c 2005-03-07 15:49:55.000000000 +1100 @@ -1494,7 +1494,7 @@ static int raid1_reshape(mddev_t *mddev, if (conf->mirrors[d].rdev) return -EBUSY; - newpoolinfo = kmalloc(sizeof(newpoolinfo), GFP_KERNEL); + newpoolinfo = kmalloc(sizeof(*newpoolinfo), GFP_KERNEL); if (!newpoolinfo) return -ENOMEM; newpoolinfo->mddev = mddev; - 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