• Andrew Morton's avatar
    [PATCH] sys_ioperm atomicity fix · f9a4baef
    Andrew Morton authored
    sys_ioperm() is calling kmalloc(GFP_KERNEL) inside get_cpu().  That's
    wrong, because the memory allocation could schedule away and return on
    a different CPU.
    
    So change it to perform the memory allocation outside the atomic region.
    f9a4baef
ioport.c 2.97 KB