• Bob Peterson's avatar
    dlm: don't save callbacks after accept · 3735b4b9
    Bob Peterson authored
    When DLM calls accept() on a socket, the comm code copies the sk
    after we've saved its callbacks. Afterward, it calls add_sock which
    saves the callbacks a second time. Since the error reporting function
    lowcomms_error_report calls the previous callback too, this results
    in a recursive call to itself. This patch adds a new parameter to
    function add_sock to tell whether to save the callbacks. Function
    tcp_accept_from_sock (and its sctp counterpart) then calls it with
    false to avoid the recursion.
    Signed-off-by: default avatarBob Peterson <rpeterso@redhat.com>
    Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
    3735b4b9
lowcomms.c 41.9 KB