• Stephen Hemminger's avatar
    [NET] Fix use after free in AX.25 · ca8c5e0e
    Stephen Hemminger authored
    This patch is against 2.6.0-test2.  The problem is that the ax25_destroy_socket
    function frees the socket buffer, but then ax25_release dereferences this causing
    an OOPS.  To reproduce:
            modprobe ax25; ifconfig -a
    
    Replaced sk_free with sock_put which will free if this is the last reference.
    ca8c5e0e
af_ax25.c 43.9 KB