The patch titled cr_backlight_probe() allocates too little storage for struct cr_panel has been added to the -mm tree. Its filename is cr_backlight_probe-allocates-too-little-storage-for-struct-cr_panel.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: cr_backlight_probe() allocates too little storage for struct cr_panel From: Jesper Juhl <jesper.juhl@xxxxxxxxx> The Coverity checker noticed that we allocate too little storage for "struct cr_panel *crp" in cr_backlight_probe(). Signed-off-by: Jesper Juhl <jesper.juhl@xxxxxxxxx> Cc: Thomas Hellstrom <thomas@xxxxxxxxxxxxxxxxxxxx> Cc: Alan Hourihane <alanh@xxxxxxxxxxxxxxxxxxxx> Cc: <stable@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/video/backlight/cr_bllcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/video/backlight/cr_bllcd.c~cr_backlight_probe-allocates-too-little-storage-for-struct-cr_panel drivers/video/backlight/cr_bllcd.c --- a/drivers/video/backlight/cr_bllcd.c~cr_backlight_probe-allocates-too-little-storage-for-struct-cr_panel +++ a/drivers/video/backlight/cr_bllcd.c @@ -174,7 +174,7 @@ static int cr_backlight_probe(struct pla struct cr_panel *crp; u8 dev_en; - crp = kzalloc(sizeof(crp), GFP_KERNEL); + crp = kzalloc(sizeof(*crp), GFP_KERNEL); if (crp == NULL) return -ENOMEM; _ Patches currently in -mm which might be from jesper.juhl@xxxxxxxxx are origin.patch cr_backlight_probe-allocates-too-little-storage-for-struct-cr_panel.patch fix-acpi_ev_pci_config_region_setup-to-avoid-memory-leak.patch git-gfs2-nmw.patch git-mtd.patch git-xfs.patch ipmi-fix-mem-leak-in-try_init_dmi.patch fix-a-use-after-free-bug-in-kernel-userspace-relay-file-support.patch floppy-do-a-very-minimal-style-cleanup-of-the-floppy-driver.patch floppy-remove-dead-commented-out-code-from-floppy-driver.patch floppy-remove-register-keyword-use-from-floppy-driver.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html