The patch titled
     cr_backlight_probe() allocates too little storage for struct cr_panel
has been removed from the -mm tree.  Its filename was
     cr_backlight_probe-allocates-too-little-storage-for-struct-cr_panel.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: cr_backlight_probe() allocates too little storage for struct cr_panel
From: Jesper Juhl <[EMAIL PROTECTED]>

The Coverity checker noticed that we allocate too little storage for
"struct cr_panel *crp" in cr_backlight_probe().

Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]>
Cc: Thomas Hellstrom <[EMAIL PROTECTED]>
Cc: Alan Hourihane <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 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 [EMAIL PROTECTED] are

origin.patch
memory-leak-in-tpm_ascii_bios_measurements_open-fix.patch
fix-acpi_ev_pci_config_region_setup-to-avoid-memory-leak.patch
fix-use-after-free--double-free-bug-in-amd_create_gatt_pages--amd_free_gatt_pages.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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to