Skip to content

Commit

Permalink
net: qrtr: Invoke sk_error_report() after setting sk_err
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
andersson authored and davem330 committed Oct 11, 2017
1 parent 7822b08 commit ae85bfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/qrtr/qrtr.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ static void qrtr_reset_ports(void)

sock_hold(&ipc->sk);
ipc->sk.sk_err = ENETRESET;
wake_up_interruptible(sk_sleep(&ipc->sk));
ipc->sk.sk_error_report(&ipc->sk);
sock_put(&ipc->sk);
}
mutex_unlock(&qrtr_port_lock);
Expand Down

0 comments on commit ae85bfa

Please sign in to comment.