diff options
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-context.c')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-context.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-context.c b/drivers/media/video/pvrusb2/pvrusb2-context.c index cf129746205d..6bbed88d7867 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-context.c +++ b/drivers/media/video/pvrusb2/pvrusb2-context.c | |||
@@ -83,9 +83,8 @@ struct pvr2_context *pvr2_context_create( | |||
83 | void (*setup_func)(struct pvr2_context *)) | 83 | void (*setup_func)(struct pvr2_context *)) |
84 | { | 84 | { |
85 | struct pvr2_context *mp = NULL; | 85 | struct pvr2_context *mp = NULL; |
86 | mp = kmalloc(sizeof(*mp),GFP_KERNEL); | 86 | mp = kzalloc(sizeof(*mp),GFP_KERNEL); |
87 | if (!mp) goto done; | 87 | if (!mp) goto done; |
88 | memset(mp,0,sizeof(*mp)); | ||
89 | pvr2_trace(PVR2_TRACE_STRUCT,"Creating pvr_main id=%p",mp); | 88 | pvr2_trace(PVR2_TRACE_STRUCT,"Creating pvr_main id=%p",mp); |
90 | mp->setup_func = setup_func; | 89 | mp->setup_func = setup_func; |
91 | mutex_init(&mp->mutex); | 90 | mutex_init(&mp->mutex); |