git: kernel - Adjust impossible conditions in kdmsg_state_*()

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Aug 5 23:23:53 PDT 2013


commit 0a2f67afbeb09ba5255fe4f9f9f607651ea3efe6
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Aug 5 23:22:56 2013 -0700

    kernel - Adjust impossible conditions in kdmsg_state_*()
    
    * kdmsg_state_reply() and kdmsg_state_result() require a non-NULL state.
      Assert the condition and remove the else clause that was broken in the
      first place.
    
    Reported-by: Joris giovannang

Summary of changes:
 sys/kern/kern_dmsg.c | 40 ++++++++++++++++------------------------
 1 file changed, 16 insertions(+), 24 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0a2f67afbeb09ba5255fe4f9f9f607651ea3efe6


-- 
DragonFly BSD source repository


More information about the Commits mailing list