[PATCH] drivers/media/video/zr36120.c (repost)

2001-05-22 Thread Philip Wang
Greetings, I wanted to repost this zr36120 patch, both because so far it has gone unnoticed, and because there was a problem with the text formatting which is now fixed. There is a bug in zr36120.c of not freeing memory on error paths. This one is particularly dangerous, because kmalloc allo

[PATCH] drivers/acpi/driver.c (repost)

2001-05-21 Thread Philip Wang
Hello! This is a repost of my previous message, which came out garbled. Now you should be able to run patch -pO from the root linux dir on the files... There is a bug in driver.c of not freeing memory on error paths. buf.pointer is allocated but not freed if copy_to_user fails. The additio

[PATCH] drivers/acpi/driver.c

2001-05-21 Thread Philip Wang
Hello! There is a bug in driver.c of not freeing memory on error paths. buf.pointer is allocated but not freed if copy_to_user fails. The addition I made was to kfree buf.pointer before returning -EFAULT. Thanks! Philip --- /2.4.4/linux/drivers/acpi/driver.c Fri Feb 9 11:45:58 2001 +++ d

[PATCH] drivers/media/video/zr36120.c

2001-05-21 Thread Philip Wang
Hello! I'm Philip, from Professor Dawson Engler's Meta-Compilation Group at Stanford University. There is a bug in zr36120.c of not freeing memory on error paths. This one is particularly dangerous, because kmalloc allocates a memory block the size of a memory clip! I simply free the local

[PATCH] vmalloc NULL Check Bug Fix

2001-05-13 Thread Philip Wang
Hello! I'm Philip, from Professor Dawson Engler's Meta-Compilation Group at Stanford University. This simple and obvious bug fix makes sure that vmalloc() does not return NULL. My addition of returning -1 is consistent with how the rest of the code deals with allocation failures. Warmly, P