]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[ACPI] fix kmalloc size bug in acpi/video.c
authorPaulo Marques <pmarques@grupopie.com>
Thu, 31 Mar 2005 03:39:49 +0000 (22:39 -0500)
committerLen Brown <len.brown@intel.com>
Tue, 12 Jul 2005 03:58:45 +0000 (23:58 -0400)
commitd1dd0c23916bd781de27bc5ec1c295064e9ce9cc
tree8a817dfc450af2d2233533dc44593d33e2117eb5
parent7334571f724df7a19f48cc974e991e00afde1e2f
[ACPI] fix kmalloc size bug in acpi/video.c

acpi_video_device_find_cap() used &p instead of *p
when calculating storage size, thus allocating
only 4 or 8 bytes instead of 12...

Also, kfree(NULL) is legal, so remove some unneeded checks.

From: Paulo Marques <pmarques@grupopie.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/video.c