Re: [BUG] object: is not initialized, yet kobject_put() is being called

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Markus Trippelsdorf
Date: Thursday, August 12, 2010 - 4:56 am

On Thu, Aug 12, 2010 at 01:45:13PM +0200, Markus Trippelsdorf wrote:

Reverting bd25f4dd6972755579d0ea50d1a5ace2e9b00d1a with USB_HIDDEV
enabled also solves the problem. So there must be a bug in that patch:

commit bd25f4dd6972755579d0ea50d1a5ace2e9b00d1a
Author: Arnd Bergmann <arnd@arndb.de>
Date:   Sun Jul 11 15:34:05 2010 +0200

    HID: hiddev: use usb_find_interface, get rid of BKL
    
    This removes the private hiddev_table in the usbhid
    driver and changes it to use usb_find_interface
    instead.
    
    The advantage is that we can avoid the race between
    usb_register_dev and usb_open and no longer need the
    big kernel lock.
    
    This doesn't introduce race condition -- the intf pointer could be
    invalidated only in hiddev_disconnect() through usb_deregister_dev(),
    but that will block on minor_rwsem and not actually remove the device
    until usb_open().
    
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    Cc: Jiri Kosina <jkosina@suse.cz>
    Cc: "Greg Kroah-Hartman" <gregkh@suse.de>
    Signed-off-by: Jiri Kosina <jkosina@suse.cz>


-- 
»A man who doesn't know he is in prison can never escape.«
William S. Burroughs
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[BUG] USB no longer works for APCUPS, Heinz Diehl, (Tue Aug 10, 2:09 pm)
Re: [BUG] object: is not initialized, yet kobject_put() is ..., Markus Trippelsdorf, (Tue Aug 10, 3:32 pm)
Re: [BUG] object: is not initialized, yet kobject_put() is ..., Markus Trippelsdorf, (Thu Aug 12, 2:16 am)
Re: [BUG] object: is not initialized, yet kobject_put() is ..., Markus Trippelsdorf, (Thu Aug 12, 4:36 am)
Re: [BUG] object: is not initialized, yet kobject_put() is ..., Markus Trippelsdorf, (Thu Aug 12, 4:45 am)
Re: [BUG] object: is not initialized, yet kobject_put() is ..., Markus Trippelsdorf, (Thu Aug 12, 4:56 am)
Re: [BUG] object: is not initialized, yet kobject_put() is ..., Markus Trippelsdorf, (Thu Aug 12, 6:04 am)
Re: [BUG] object: is not initialized, yet kobject_put() is ..., Markus Trippelsdorf, (Thu Aug 12, 6:17 am)