mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
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>
This commit is contained in:
parent
7822b0836d
commit
ae85bfa878
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user