Re: cleanup of hiddev

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Dienstag, 4. November 2008 16:19:57 schrieb Jiri Slaby:
> Oliver Neukum napsal(a):
> > Am Montag, 3. November 2008 20:58:11 schrieb Jiri Slaby:
> >>> @@ -828,6 +828,14 @@ int hiddev_connect(struct hid_device *hid, unsigned int force)
> >>>  
> >>>  	hiddev_table[usbhid->intf->minor - HIDDEV_MINOR_BASE] = hiddev;
> >> usbhid->intf->minor is set even after this call:
> > 
> > What does this mean?
> 
> You removed the usb_register_dev() call when replying. It sets the
> intf->minor, but you use it above it now.
> 

Yes, I see. However, the device must not be registered before the table
is correctly filled and the minor must be filled out before. A mutex then?

	Regards
		Oliver
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux