• Andrew Morton's avatar
    [PATCH] Fix hvc console sleep in spinlock bug · c7e74ca2
    Andrew Morton authored
    From: Jeremy Kerr <jk@ozlabs.org>
    
    This patch fixes the sleep in spinlock hvc bug in hvc_write().
    
    The code is a little longer, but protects against large amounts of memory
    being kmalloc()ed by userspace, and minimises calls to copy_from_user().
    c7e74ca2
hvc_console.c 8.58 KB