static char *buf; (was Re: +v4l-fix-concurrent-read-from-proc-videocodecs.patch added to -mmtree)

From: Alexey Dobriyan
Date: Sun Apr 13 2008 - 12:22:58 EST


> -static char *videocodec_buf = NULL;
> -static int videocodec_bufsize;

> - kfree(videocodec_buf);
> - videocodec_buf = kmalloc(size, GFP_KERNEL);

Speaking of this failure mode... cfi_staa_writev() does the same trick
allocating and freeing global pointer to data.
Is this a bug too?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/