diff options
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-io.c')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-io.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-io.c b/drivers/media/video/pvrusb2/pvrusb2-io.c index 57fb32033543..ce3c8982ffe0 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-io.c +++ b/drivers/media/video/pvrusb2/pvrusb2-io.c | |||
@@ -474,9 +474,8 @@ static void buffer_complete(struct urb *urb) | |||
474 | struct pvr2_stream *pvr2_stream_create(void) | 474 | struct pvr2_stream *pvr2_stream_create(void) |
475 | { | 475 | { |
476 | struct pvr2_stream *sp; | 476 | struct pvr2_stream *sp; |
477 | sp = kmalloc(sizeof(*sp),GFP_KERNEL); | 477 | sp = kzalloc(sizeof(*sp),GFP_KERNEL); |
478 | if (!sp) return sp; | 478 | if (!sp) return sp; |
479 | memset(sp,0,sizeof(*sp)); | ||
480 | pvr2_trace(PVR2_TRACE_INIT,"pvr2_stream_create: sp=%p",sp); | 479 | pvr2_trace(PVR2_TRACE_INIT,"pvr2_stream_create: sp=%p",sp); |
481 | pvr2_stream_init(sp); | 480 | pvr2_stream_init(sp); |
482 | return sp; | 481 | return sp; |