git: kqueue: Knote should not be accessed once the KN_PROCESSING is cleared

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Thu Feb 18 06:26:11 PST 2016


commit d6bf08aa5c3f7c78b2ed23f67859200d50106490
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Thu Feb 18 22:16:00 2016 +0800

    kqueue: Knote should not be accessed once the KN_PROCESSING is cleared
    
    Though the original code is safe, since knote_release() is called w/
    kq token, it is better that we clear KN_PROCESSING as the last step.

Summary of changes:
 sys/kern/kern_event.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d6bf08aa5c3f7c78b2ed23f67859200d50106490


-- 
DragonFly BSD source repository


More information about the Commits mailing list