• Thomas Gleixner's avatar
    um: Remove BKL from mmapper · d63c489b
    Thomas Gleixner authored
    cycle_kernel_lock() was added during the big BKL pushdown. It should
    ensure the serializiation against driver init code.
    
    mmapper_open() cannot be called before misc_register() succeeded, but
    p_buf might be uninitialized.
    
    Move the initialization of p_buf before the misc_register() call and
    get rid of cycle_kernel_lock().
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    LKML-Reference: <20091010153349.682213670@linutronix.de>
    Cc: Jeff Dike <jdike@addtoit.com>
    d63c489b
mmapper_kern.c 2.87 KB