Commit ecc1e6ca authored by Dave Jones's avatar Dave Jones

[PATCH] sanitise proc usage in zoran driver

parent e080ca2d
......@@ -111,6 +111,9 @@ static int zoran_write_proc(struct file *file, const char *buffer, unsigned long
zr = (struct zoran *) data;
if(count > 32768) /* Stupidity filter */
count = 32768;
string = sp = vmalloc(count + 1);
if (!string) {
printk(KERN_ERR "%s: write_proc: can not allocate memory\n", zr->name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment