This patch changes the handling of calling the original
sk_error_report() by not putting it on the stack and calling it later.
If the listen_sock.sk_error_report() is NULL in this moment it indicates
a bug in our implementation.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
static void lowcomms_error_report(struct sock *sk)
{
struct connection *con = sock2con(sk);
- void (*orig_report)(struct sock *) = NULL;
struct inet_sock *inet;
- orig_report = listen_sock.sk_error_report;
-
inet = inet_sk(sk);
switch (sk->sk_family) {
case AF_INET:
queue_work(send_workqueue, &con->swork);
out:
- if (orig_report)
- orig_report(sk);
+ listen_sock.sk_error_report(sk);
}
static void restore_callbacks(struct socket *sock)