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
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
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
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
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
5 matches
Mail list logo