Commit:     4f663bdc65307e38401aa3b787a7a7569f28b920
Parent:     ac72fed79fbbdb35882b393401584435c9fc37ac
Author:     Mike Isely <[EMAIL PROTECTED]>
AuthorDate: Sat Nov 3 00:06:42 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Sun Nov 4 21:41:30 2007 -0200

    V4L/DVB (6548): pvrusb2: Fix oops on module removal
    The pvrusb2 driver is tearing down its sysfs related pieces in the
    incorrect order.  This leaves dangling pointers which causes the
    kernel device core to oops.  The problem has been present virtually
    forever but became malignant with the changeover to the way of
    handling /sys/class.  Fix is just to make sure we don't tear down the
    class structure until AFTER the driver instances are deregistered.
    Signed-off-by: Mike Isely <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
 drivers/media/video/pvrusb2/pvrusb2-main.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/media/video/pvrusb2/pvrusb2-main.c 
index ca9e278..11b3b2e 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-main.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-main.c
@@ -136,14 +136,13 @@ static int __init pvr_init(void)
 static void __exit pvr_exit(void)
+       usb_deregister(&pvr_driver);
-       usb_deregister(&pvr_driver);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to