Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2301c4d9 authored by Bjorn Andersson's avatar Bjorn Andersson Committed by Chris Lew
Browse files

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.

Change-Id: Ie8fcdd1499439e6cea06812feac41acfb8180b54
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Patch-mainline: netdev @ 06/09/17, 23:03
[clew@codeaurora.org: fix notification typo in commit msg]
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent 83569191
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);