|
|
Subscribe / Log in / New account

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.


to post comments

Fixed

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...


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds