• Linus Torvalds's avatar
    Fix double unlock of page_table_lock in do_wp_page(). · eba29972
    Linus Torvalds authored
    Noticed by Petr Vandrovec.
    
    In the out-of-memory case, do_wp_page() would unlock page_table_lock
    twice - once before allocating, and once in the exit path.
    
    Rewrite the exit paths to be more readable, and don't try to share
    the code between all the exit cases, since they are very different. 
    eba29972
memory.c 43.6 KB