Skip to content

Commit ae85bfa

Browse files
anderssondavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7822b08 commit ae85bfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/qrtr/qrtr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ static void qrtr_reset_ports(void)
541541

542542
sock_hold(&ipc->sk);
543543
ipc->sk.sk_err = ENETRESET;
544-
wake_up_interruptible(sk_sleep(&ipc->sk));
544+
ipc->sk.sk_error_report(&ipc->sk);
545545
sock_put(&ipc->sk);
546546
}
547547
mutex_unlock(&qrtr_port_lock);

0 commit comments

Comments
 (0)