News for hackers. Stuff that matters.
Re:Writing device drivers in Linux: A brief tutorial (2006) by Someone on Monday April 22, 2013 @12:38PM (#5590228)
I haven't bothered to check the docs, but isn't that a race condition in memory_init, registering the device before allocating the buffer?

Or are drivers loaded while holding a global lock? Even though driver (un)loading probably is fairly rare, that seems a bit heavy to me.

Worse, the 'goto fail' path, if it is ever hit, seems to leak a register_chrdev call.

There are no comments on this comment yet.