diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2017-10-11 02:45:17 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-11 18:28:38 -0400 |
commit | ae85bfa87821b9fa60bf846c09a6a0056d87cdb2 (patch) | |
tree | 09ec50391efbddb35f01c47961bfd2176a2b8deb /net/qrtr | |
parent | 7822b0836d2121d7de3d0f9ec636338d7496e5dc (diff) |
net: qrtr: Invoke sk_error_report() after setting sk_err
Rather than manually waking up any context sleeping on the sock to
signal an error we should call sk_error_report(). This has the added
benefit that in-kernel consumers can override this notification with
its own callback.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/qrtr')
-rw-r--r-- | net/qrtr/qrtr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/qrtr/qrtr.c b/net/qrtr/qrtr.c index c2f5c13550c0..7e4b49a8349e 100644 --- a/net/qrtr/qrtr.c +++ b/net/qrtr/qrtr.c | |||
@@ -541,7 +541,7 @@ static void qrtr_reset_ports(void) | |||
541 | 541 | ||
542 | sock_hold(&ipc->sk); | 542 | sock_hold(&ipc->sk); |
543 | ipc->sk.sk_err = ENETRESET; | 543 | ipc->sk.sk_err = ENETRESET; |
544 | wake_up_interruptible(sk_sleep(&ipc->sk)); | 544 | ipc->sk.sk_error_report(&ipc->sk); |
545 | sock_put(&ipc->sk); | 545 | sock_put(&ipc->sk); |
546 | } | 546 | } |
547 | mutex_unlock(&qrtr_port_lock); | 547 | mutex_unlock(&qrtr_port_lock); |