Skip to content

Commit

Permalink
V4L/DVB (10932): zoran: Don't frighten users with failed buffer alloc…
Browse files Browse the repository at this point in the history
…ation

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.

Cc: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Jean Delvare authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 4dbf46a commit ee9a9d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/media/video/zoran/zoran_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ v4l_fbuffer_alloc (struct file *file)
ZR_DEVNAME(zr), i);

//udelay(20);
mem = kmalloc(fh->buffers.buffer_size, GFP_KERNEL);
mem = kmalloc(fh->buffers.buffer_size,
GFP_KERNEL | __GFP_NOWARN);
if (!mem) {
dprintk(1,
KERN_ERR
Expand Down

0 comments on commit ee9a9d6

Please sign in to comment.