summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/ivtv/ivtv-yuv.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-05-01 12:31:12 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2008-05-01 12:31:12 +0200
commitea036ab76194bc4f02dbb0803e4d977044636188 (patch)
tree1902d1b83ee3a302c5fdfec4de2ae8e2d1506ac8 /linux/drivers/media/video/ivtv/ivtv-yuv.c
parent778ea1f1dd0cb7da18e5e0258f9c443f8debafe4 (diff)
downloadmediapointer-dvb-s2-ea036ab76194bc4f02dbb0803e4d977044636188.tar.gz
mediapointer-dvb-s2-ea036ab76194bc4f02dbb0803e4d977044636188.tar.bz2
cx18/ivtv: improve and fix out-of-memory handling
From: Hans Verkuil <hverkuil@xs4all.nl> - don't show kernel backtrace when the allocation of the buffers fails: the normal ivtv/cx18 messages are clear enough and the backtrace scares users. - fix cleanup after the buffer allocation fails (caused kernel panic). Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/ivtv/ivtv-yuv.c')
-rw-r--r--linux/drivers/media/video/ivtv/ivtv-yuv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/ivtv/ivtv-yuv.c b/linux/drivers/media/video/ivtv/ivtv-yuv.c
index 62f70bd5e..a9417f6e4 100644
--- a/linux/drivers/media/video/ivtv/ivtv-yuv.c
+++ b/linux/drivers/media/video/ivtv/ivtv-yuv.c
@@ -908,7 +908,7 @@ static void ivtv_yuv_init(struct ivtv *itv)
}
/* We need a buffer for blanking when Y plane is offset - non-fatal if we can't get one */
- yi->blanking_ptr = kzalloc(720 * 16, GFP_KERNEL);
+ yi->blanking_ptr = kzalloc(720 * 16, GFP_KERNEL|__GFP_NOWARN);
if (yi->blanking_ptr) {
yi->blanking_dmaptr = pci_map_single(itv->dev, yi->blanking_ptr, 720*16, PCI_DMA_TODEVICE);
} else {