Commit 747f0796 authored by Mike Isely's avatar Mike Isely Committed by Mauro Carvalho Chehab

V4L/DVB (6205): pvrusb2: Fix oops in error leg cleanup

Signed-off-by: default avatarMike Isely <isely@pobox.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 289ea1f0
...@@ -33,8 +33,10 @@ static void pvr2_context_destroy(struct pvr2_context *mp) ...@@ -33,8 +33,10 @@ static void pvr2_context_destroy(struct pvr2_context *mp)
{ {
if (mp->hdw) pvr2_hdw_destroy(mp->hdw); if (mp->hdw) pvr2_hdw_destroy(mp->hdw);
pvr2_trace(PVR2_TRACE_STRUCT,"Destroying pvr_main id=%p",mp); pvr2_trace(PVR2_TRACE_STRUCT,"Destroying pvr_main id=%p",mp);
if (mp->workqueue) {
flush_workqueue(mp->workqueue); flush_workqueue(mp->workqueue);
destroy_workqueue(mp->workqueue); destroy_workqueue(mp->workqueue);
}
kfree(mp); kfree(mp);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment