kmalloc() can fail for large video buffers. By default the kernel complains loudly about allocation failures, but we don't want to frighten the user, so ask kmalloc() to keep quiet on such failures.
Signed-off-by: Jean Delvare <kh...@linux-fr.org> Cc: Trent Piepho <xy...@speakeasy.org> Cc: Hans Verkuil <hverk...@xs4all.nl> --- linux/drivers/media/video/zoran/zoran_driver.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- v4l-dvb.orig/linux/drivers/media/video/zoran/zoran_driver.c 2009-03-02 11:19:20.000000000 +0100 +++ v4l-dvb/linux/drivers/media/video/zoran/zoran_driver.c 2009-03-02 11:19:21.000000000 +0100 @@ -212,7 +212,8 @@ v4l_fbuffer_alloc (struct file *file) ZR_DEVNAME(zr), i); //udelay(20); - mem = kmalloc(fh->v4l_buffers.buffer_size, GFP_KERNEL); + mem = kmalloc(fh->v4l_buffers.buffer_size, + GFP_KERNEL | __GFP_NOWARN); if (!mem) { dprintk(1, KERN_ERR -- Jean Delvare -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html