diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-context.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-context.c b/drivers/media/video/pvrusb2/pvrusb2-context.c index 6bbed88d7867..22719ba861ac 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-context.c +++ b/drivers/media/video/pvrusb2/pvrusb2-context.c | |||
@@ -33,8 +33,10 @@ static void pvr2_context_destroy(struct pvr2_context *mp) | |||
33 | { | 33 | { |
34 | if (mp->hdw) pvr2_hdw_destroy(mp->hdw); | 34 | if (mp->hdw) pvr2_hdw_destroy(mp->hdw); |
35 | pvr2_trace(PVR2_TRACE_STRUCT,"Destroying pvr_main id=%p",mp); | 35 | pvr2_trace(PVR2_TRACE_STRUCT,"Destroying pvr_main id=%p",mp); |
36 | flush_workqueue(mp->workqueue); | 36 | if (mp->workqueue) { |
37 | destroy_workqueue(mp->workqueue); | 37 | flush_workqueue(mp->workqueue); |
38 | destroy_workqueue(mp->workqueue); | ||
39 | } | ||
38 | kfree(mp); | 40 | kfree(mp); |
39 | } | 41 | } |
40 | 42 | ||