On Thu 2018-03-08 10:40:44, Oleh Kravchenko wrote: > On 07.03.18 23:51, Pavel Machek wrote: > >> I tried to use cdev.brightness_set_blocking, but instead working LEDs I > >> got kernel NULL pointer dereference error. > > > > The backtrace shows driver being unregistered at that point. if you > > did not request rmmod, it means that something failed during > > registration .... > > I tried to unload module and it's crashed, it's forbidden to do? Its not, but I guess you should have mentioned that. Take a look at some driver that uses set_blocking for the neccessary locking... Best regards, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Attachment:
signature.asc
Description: Digital signature