diff options
Diffstat (limited to 'drivers/media/video/cx18/cx18-queue.c')
-rw-r--r-- | drivers/media/video/cx18/cx18-queue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/cx18/cx18-queue.c b/drivers/media/video/cx18/cx18-queue.c index 65af1bb507ca..4ef6996b2048 100644 --- a/drivers/media/video/cx18/cx18-queue.c +++ b/drivers/media/video/cx18/cx18-queue.c | |||
@@ -239,12 +239,12 @@ int cx18_stream_alloc(struct cx18_stream *s) | |||
239 | 239 | ||
240 | /* allocate stream buffers. Initially all buffers are in q_free. */ | 240 | /* allocate stream buffers. Initially all buffers are in q_free. */ |
241 | for (i = 0; i < s->buffers; i++) { | 241 | for (i = 0; i < s->buffers; i++) { |
242 | struct cx18_buffer *buf = | 242 | struct cx18_buffer *buf = kzalloc(sizeof(struct cx18_buffer), |
243 | kzalloc(sizeof(struct cx18_buffer), GFP_KERNEL); | 243 | GFP_KERNEL|__GFP_NOWARN); |
244 | 244 | ||
245 | if (buf == NULL) | 245 | if (buf == NULL) |
246 | break; | 246 | break; |
247 | buf->buf = kmalloc(s->buf_size, GFP_KERNEL); | 247 | buf->buf = kmalloc(s->buf_size, GFP_KERNEL|__GFP_NOWARN); |
248 | if (buf->buf == NULL) { | 248 | if (buf->buf == NULL) { |
249 | kfree(buf); | 249 | kfree(buf); |
250 | break; | 250 | break; |