git: kernel -- syscons: Resolve unmatched PHOLD() for MOUSE_MODE ioctl.

Sascha Wildner swildner at crater.dragonflybsd.org
Thu Mar 21 12:10:27 PDT 2013


commit c3ab84cc4b098e768a5ab0e74ea571534875a455
Author: Venkatesh Srinivas <me at endeavour.zapto.org>
Date:   Thu Mar 21 03:50:52 2013 -0400

    kernel -- syscons: Resolve unmatched PHOLD() for MOUSE_MODE ioctl.
    
    When a syscons process put itself into MOUSE_MODE, a process-hold
    was being placed to stabilize the process for signal delivery. The
    hold was not being released on process exit, however.
    
    This change reworks syscons to install a per-process flag as to
    whether it is in MOUSE_MODE or not and to remove the excess hold on
    exit(). It also cleans up the error handling and prevents stale
    process pointers from lingering in syscons stat structures.
    
    Reported-by: mneumann, Studbolt
    Closes-bug: 2521

Summary of changes:
 sys/dev/misc/syscons/Makefile  |   1 -
 sys/dev/misc/syscons/scmouse.c | 166 ++++++++++++++++++++++++++++++-----------
 sys/sys/proc.h                 |   4 +-
 3 files changed, 124 insertions(+), 47 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list