Linux kernel design patterns - part 1
Linux kernel design patterns - part 1
Posted Nov 10, 2022 23:47 UTC (Thu) by neilbrown (subscriber, #359)In reply to: Linux kernel design patterns - part 1 by dafnaf
Parent article: Linux kernel design patterns - part 1
> shouldn't it be BUG_ON(!atomic_read(&obj->refcnt)) //(bug if refcount is 0)
Yes it should. Thanks for pointing that out.
Posted Nov 11, 2022 0:13 UTC (Fri)
by corbet (editor, #1)
[Link]
I've applied the fix, thanks. The error has only been there for 13 years...
Fixed