• Jiri Slaby's avatar
    TTY: tty_buffer, warn on leaks · feacbecb
    Jiri Slaby authored
    When we leak some tty buffer, warn about that. For that we need to
    account the memory used also in the tty_buffer_free_all function. On
    other locations, the accounting is handled correctly.
    
    Note that we do not account the free list, as that was accounted in
    tty_buffer_free before put on the free list.
    
    I have been using this patch for ages, so let's see if anybody else
    encounters any issues.
    Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    feacbecb
tty_buffer.c 16.1 KB