You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
fs: dlm: use sk->sk_socket instead of con->sock
[ Upstream commit feb704bd17 ]
Instead of dereference "con->sock" we can get the socket structure over
"sk->sk_socket" as well. This patch will switch to this behaviour.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6edd1bd8e3
commit
98923ebb03
@@ -480,8 +480,7 @@ static void lowcomms_error_report(struct sock *sk)
|
||||
goto out;
|
||||
|
||||
orig_report = listen_sock.sk_error_report;
|
||||
if (con->sock == NULL ||
|
||||
kernel_getpeername(con->sock, (struct sockaddr *)&saddr) < 0) {
|
||||
if (kernel_getpeername(sk->sk_socket, (struct sockaddr *)&saddr) < 0) {
|
||||
printk_ratelimited(KERN_ERR "dlm: node %d: socket error "
|
||||
"sending to node %d, port %d, "
|
||||
"sk_err=%d/%d\n", dlm_our_nodeid(),
|
||||
|
||||
Reference in New Issue
Block a user