net: qrtr: Invoke sk_error_report() after setting sk_err
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 11 Oct 2017 06:45:17 +0000 (23:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Oct 2017 22:28:38 +0000 (15:28 -0700)
commitae85bfa87821b9fa60bf846c09a6a0056d87cdb2
tree09ec50391efbddb35f01c47961bfd2176a2b8deb
parent7822b0836d2121d7de3d0f9ec636338d7496e5dc
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>
net/qrtr/qrtr.c