diff options
author | Alexander Aring <aahringo@redhat.com> | 2021-06-27 18:48:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-29 11:28:21 -0700 |
commit | e3ae2365efc14269170a6326477e669332271ab3 (patch) | |
tree | 336e988ed36c0b1078d5f0aebcfe59e23482fe7d /net/can/j1939/socket.c | |
parent | 7f4e5c5b8cb00138ad1a10cab87bbd1e2d4d3376 (diff) | |
download | lwn-e3ae2365efc14269170a6326477e669332271ab3.tar.gz lwn-e3ae2365efc14269170a6326477e669332271ab3.zip |
net: sock: introduce sk_error_report
This patch introduces a function wrapper to call the sk_error_report
callback. That will prepare to add additional handling whenever
sk_error_report is called, for example to trace socket errors.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/can/j1939/socket.c')
-rw-r--r-- | net/can/j1939/socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/can/j1939/socket.c b/net/can/j1939/socket.c index 56aa66147d5a..bf18a32dc6ae 100644 --- a/net/can/j1939/socket.c +++ b/net/can/j1939/socket.c @@ -1009,7 +1009,7 @@ void j1939_sk_send_loop_abort(struct sock *sk, int err) { sk->sk_err = err; - sk->sk_error_report(sk); + sk_error_report(sk); } static int j1939_sk_send_loop(struct j1939_priv *priv, struct sock *sk, @@ -1189,7 +1189,7 @@ void j1939_sk_netdev_event_netdown(struct j1939_priv *priv) list_for_each_entry(jsk, &priv->j1939_socks, list) { jsk->sk.sk_err = error_code; if (!sock_flag(&jsk->sk, SOCK_DEAD)) - jsk->sk.sk_error_report(&jsk->sk); + sk_error_report(&jsk->sk); j1939_sk_queue_drop_all(priv, jsk, error_code); } |